Changeset 999


Ignore:
Timestamp:
12/10/2006 23:20:09 (5 years ago)
Author:
chris
Message:
  • Use CopyFile? to copy on Windows, instead of shelling out to cp, which

doesn't understand native paths.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/test/backupdiff/testbackupdiff.cpp

    r998 r999  
    214214        else 
    215215        { 
     216#ifdef WIN32 
     217                // Emulate the above stage! 
     218                char src[256], dst[256]; 
     219                sprintf(src, "testfiles\\f%d.diff", to); 
     220                sprintf(dst, "testfiles\\f%d.encoded", to); 
     221                TEST_THAT(CopyFile(src, dst, FALSE) != 0) 
     222#else 
    216223                // Emulate the above stage! 
    217224                char cmd[256]; 
    218225                sprintf(cmd, "cp testfiles/f%d.diff testfiles/f%d.encoded", to, to); 
    219226                ::system(cmd); 
     227#endif 
    220228        } 
    221229 
Note: See TracChangeset for help on using the changeset viewer.