comparison UnitTestsSources/SQLiteTests.cpp @ 1476:ec7427df0a2a

fix build
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 01 Aug 2015 21:40:49 +0200
parents 6e7e5ed91c2d
children b1291df2f780
comparison
equal deleted inserted replaced
1475:3a5b8ed2d859 1476:ec7427df0a2a
43 using namespace Orthanc; 43 using namespace Orthanc;
44 44
45 45
46 TEST(SQLite, Configuration) 46 TEST(SQLite, Configuration)
47 { 47 {
48 ASSERT_EQ(1, sqlite3_threadsafe()); 48 /**
49 * The system-wide version of SQLite under OS X uses
50 * SQLITE_THREADSAFE==2 (SQLITE_CONFIG_SERIALIZED), whereas the
51 * static builds of Orthanc use SQLITE_THREADSAFE==1
52 * (SQLITE_CONFIG_MULTITHREAD). In any case, we wish to ensure that
53 * SQLITE_THREADSAFE!=0 (SQLITE_CONFIG_SINGLETHREAD).
54 **/
55 ASSERT_NE(0, sqlite3_threadsafe());
49 } 56 }
50 57
51 58
52 TEST(SQLite, Connection) 59 TEST(SQLite, Connection)
53 { 60 {