Mercurial > hg > orthanc
comparison UnitTestsSources/ServerIndexTests.cpp @ 1453:c0bdc47165ef
code to warn about possible threading problems
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 02 Jul 2015 12:26:44 +0200 |
parents | 0ac74fa21db8 |
children | f967bdf8534e |
comparison
equal
deleted
inserted
replaced
1452:b737acb13da5 | 1453:c0bdc47165ef |
---|---|
666 | 666 |
667 ASSERT_EQ(1u, index.IncrementGlobalSequence(GlobalProperty_AnonymizationSequence)); | 667 ASSERT_EQ(1u, index.IncrementGlobalSequence(GlobalProperty_AnonymizationSequence)); |
668 ASSERT_EQ(2u, index.IncrementGlobalSequence(GlobalProperty_AnonymizationSequence)); | 668 ASSERT_EQ(2u, index.IncrementGlobalSequence(GlobalProperty_AnonymizationSequence)); |
669 ASSERT_EQ(3u, index.IncrementGlobalSequence(GlobalProperty_AnonymizationSequence)); | 669 ASSERT_EQ(3u, index.IncrementGlobalSequence(GlobalProperty_AnonymizationSequence)); |
670 ASSERT_EQ(4u, index.IncrementGlobalSequence(GlobalProperty_AnonymizationSequence)); | 670 ASSERT_EQ(4u, index.IncrementGlobalSequence(GlobalProperty_AnonymizationSequence)); |
671 | |
672 context.Stop(); | |
671 } | 673 } |
672 | 674 |
673 | 675 |
674 | 676 |
675 TEST_P(DatabaseWrapperTest, LookupIdentifier) | 677 TEST_P(DatabaseWrapperTest, LookupIdentifier) |
777 ASSERT_GE(10, boost::lexical_cast<int>(tmp["TotalDiskSize"].asString())); | 779 ASSERT_GE(10, boost::lexical_cast<int>(tmp["TotalDiskSize"].asString())); |
778 } | 780 } |
779 | 781 |
780 // Because the DB is in memory, the SQLite index must not have been created | 782 // Because the DB is in memory, the SQLite index must not have been created |
781 ASSERT_THROW(Toolbox::GetFileSize(path + "/index"), OrthancException); | 783 ASSERT_THROW(Toolbox::GetFileSize(path + "/index"), OrthancException); |
784 | |
785 context.Stop(); | |
782 } | 786 } |