From: rnv Date: Wed, 13 Mar 2019 13:12:22 +0000 (+0300) Subject: Compilation under Windows. X-Git-Tag: V9_3_0b1^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Frnv%2Fwin_test_sauv_loader;p=tools%2Fmedcoupling.git Compilation under Windows. --- diff --git a/src/MEDLoader/Test/SauvLoaderTest.cxx b/src/MEDLoader/Test/SauvLoaderTest.cxx index 94fb1953d..018317f95 100644 --- a/src/MEDLoader/Test/SauvLoaderTest.cxx +++ b/src/MEDLoader/Test/SauvLoaderTest.cxx @@ -337,7 +337,11 @@ void SauvLoaderTest::testCellsWithLingNames() void SauvLoaderTest::tearDown() { const int nbFilesToRemove = 3; +#if defined(WIN32) && defined(UNICODE) + const wchar_t* fileToRemove[nbFilesToRemove] = { L"allPillesTest.med", L"pointe.sauv", L"mesh_with_void_family.sauv" }; +#else const char* fileToRemove[nbFilesToRemove] = { "allPillesTest.med", "pointe.sauv", "mesh_with_void_family.sauv" }; +#endif for ( int i = 0; i < nbFilesToRemove; ++i ) { #ifdef WIN32 @@ -345,6 +349,10 @@ void SauvLoaderTest::tearDown() #else if (access(fileToRemove[i], F_OK) == 0) #endif +#if defined(WIN32) && defined(UNICODE) + _wremove(fileToRemove[i]); +#else remove(fileToRemove[i]); +#endif } }