Ignore:
Timestamp:
Sep 11, 2009, 2:11:19 AM (12 years ago)
Author:
Peter
Message:

refs #521. Deprecate class OptionInFile? and OptionOutFile?. Replaced OptinOutFile? with base class OptionFile? in commandline_test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/commandline_test.cc

    r2049 r2057  
    2727#include "yat/utility/OptionArg.h"
    2828#include "yat/utility/OptionFile.h"
    29 #include "yat/utility/OptionOutFile.h"
    3029#include "yat/utility/OptionHelp.h"
    3130#include "yat/utility/OptionSwitch.h"
     
    5251int main(int argc, char* argv[])
    5352
    54 
    5553  yat::test::Suite suite(argc, argv);
    5654
     
    525523bool test_file2(yat::test::Suite& suite)
    526524{
    527   suite.err() << "Testing OptionOutFile... ";
     525  suite.err() << "Testing OptionFile in write-protected directory... ";
    528526
    529527  if (yat::test::run_as_root()) {
     
    559557  bool ok=true;
    560558  CommandLine cmd;
    561   OptionOutFile out(cmd, "o,out", "output to file");
     559  OptionFile out(cmd, "o,out", "output to file", false, false, "w");
    562560  OptionSwitch help(cmd, "h,help", "display this help and exit");
    563561
Note: See TracChangeset for help on using the changeset viewer.