Changeset 1686

Show
Ignore:
Timestamp:
26/05/2007 16:28:19 (20 months ago)
Author:
chris
Message:

Pass the config file name directly to Daemon::Main, instead of faking argv.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • box/chris/general/test/bbackupd/testbbackupd.cpp

    r1662 r1686  
    613613                 
    614614        BackupDaemon daemon; 
    615         const char* fake_argv[] = { "bbackupd", "testfiles/bbackupd.conf" }; 
    616          
    617         int result = daemon.Main(BOX_FILE_BBACKUPD_DEFAULT_CONFIG, 2,  
    618                 fake_argv); 
     615        int result = daemon.Main("testfiles/bbackupd.conf"); 
    619616         
    620617        TEST_THAT(result == 0);