Changeset 486 for library/tests/test_util.cpp
- Timestamp:
- 08/07/09 14:32:01 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/tests/test_util.cpp
r477 r486 30 30 char buffer[8192]; 31 31 memset ( buffer, 0, sizeof ( buffer ) ); 32 std::ifstream src ( fname , std::ios_base::binary);32 std::ifstream src ( fname ); 33 33 src.read ( buffer, sizeof ( buffer ) - 1 ); 34 34 return std::string ( buffer ); … … 65 65 } 66 66 } else { 67 if ( errno == ENOTDIR ) { 67 if ( ( errno == ENOTDIR ) || // Linux 68 ( errno == EINVAL ) ) { // Windows 68 69 if ( unlink ( path ) ) { 69 70 std::string msg = "can't remove file ";