From 091e4dcd7c7911cf16847d81016775f73ebaa04d Mon Sep 17 00:00:00 2001 From: rnv Date: Wed, 13 Mar 2019 16:12:22 +0300 Subject: [PATCH] Compilation under Windows. --- src/MEDLoader/Test/SauvLoaderTest.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) 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 } } -- 2.39.2