diff 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
line wrap: on
line diff
--- a/UnitTestsSources/ServerIndexTests.cpp	Thu Jul 02 11:35:41 2015 +0200
+++ b/UnitTestsSources/ServerIndexTests.cpp	Thu Jul 02 12:26:44 2015 +0200
@@ -668,6 +668,8 @@
   ASSERT_EQ(2u, index.IncrementGlobalSequence(GlobalProperty_AnonymizationSequence));
   ASSERT_EQ(3u, index.IncrementGlobalSequence(GlobalProperty_AnonymizationSequence));
   ASSERT_EQ(4u, index.IncrementGlobalSequence(GlobalProperty_AnonymizationSequence));
+
+  context.Stop();
 }
 
 
@@ -779,4 +781,6 @@
 
   // Because the DB is in memory, the SQLite index must not have been created
   ASSERT_THROW(Toolbox::GetFileSize(path + "/index"), OrthancException);  
+
+  context.Stop();
 }