]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Compilation under Windows. rnv/win_test_sauv_loader V9_3_0b1
authorrnv <rnv@opencascade.com>
Wed, 13 Mar 2019 13:12:22 +0000 (16:12 +0300)
committerrnv <rnv@opencascade.com>
Wed, 13 Mar 2019 13:12:22 +0000 (16:12 +0300)
src/MEDLoader/Test/SauvLoaderTest.cxx

index 94fb1953d661293622ae0ab7f30afe349224561c..018317f95961600b34649bafaa7006fb83591de2 100644 (file)
@@ -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
   }
 }