comparison 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
comparison
equal deleted inserted replaced
1970:a1c1c606ce98 1971:869a87c08673
822 index.ComputeStatistics(tmp); 822 index.ComputeStatistics(tmp);
823 ASSERT_GE(10, boost::lexical_cast<int>(tmp["TotalDiskSize"].asString())); 823 ASSERT_GE(10, boost::lexical_cast<int>(tmp["TotalDiskSize"].asString()));
824 } 824 }
825 825
826 // Because the DB is in memory, the SQLite index must not have been created 826 // Because the DB is in memory, the SQLite index must not have been created
827 ASSERT_THROW(Toolbox::GetFileSize(path + "/index"), OrthancException); 827 ASSERT_FALSE(Toolbox::IsRegularFile(path + "/index"));
828 828
829 context.Stop(); 829 context.Stop();
830 db.Close(); 830 db.Close();
831 } 831 }
832 832