Ignore:
Timestamp:
08/01/13 17:19:15 (6 years ago)
Author:
jls17
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/work_304/FileSystemUtilTest.cpp

    r326 r327  
    11#include "ARInsideTest.h" 
    22#include "FileSystemUtil.h" 
     3#include "FileSystemUtilTest.h" 
    34 
    45TEST(FileSystemUtil, IsDots_WithDots_Test) 
     
    1718        string directory = FileSystemUtil::GetExecutableDirectory(argv_0); 
    1819        directory = FileSystemUtil::GetRealPathName(directory); 
    19         cout << "CurrentDir: " << directory << endl; 
     20 
     21        string expectedDir = DIRECTORY_OF_TEST_BINARY; 
     22#ifdef WIN32 
     23        expectedDir = CUtil::StrReplace("/","\\", expectedDir); 
     24        std::transform(directory.begin(), directory.end(), directory.begin(), ::tolower); 
     25        std::transform(expectedDir.begin(), expectedDir.end(), expectedDir.begin(), ::tolower); 
     26#endif 
     27 
     28        ASSERT_STREQ(expectedDir.c_str(), directory.c_str()); 
    2029} 
Note: See TracChangeset for help on using the changeset viewer.