Changeset 914


Ignore:
Timestamp:
01/09/2006 08:51:45 (5 years ago)
Author:
chris
Message:

(refs #3)

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/chris/merge/test/backupdiff/testbackupdiff.cpp

    r913 r914  
    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.