diff UnitTestsSources/ServerIndexTests.cpp @ 1971:869a87c08673

fix for mingw <= 4.2
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 11 Apr 2016 13:50:44 +0200
parents b1291df2f780
children 655489d9165d
line wrap: on
line diff
--- a/UnitTestsSources/ServerIndexTests.cpp	Mon Apr 11 13:07:15 2016 +0200
+++ b/UnitTestsSources/ServerIndexTests.cpp	Mon Apr 11 13:50:44 2016 +0200
@@ -824,7 +824,7 @@
   }
 
   // Because the DB is in memory, the SQLite index must not have been created
-  ASSERT_THROW(Toolbox::GetFileSize(path + "/index"), OrthancException);  
+  ASSERT_FALSE(Toolbox::IsRegularFile(path + "/index"));
 
   context.Stop();
   db.Close();