comparison UnitTestsSources/VersionsTests.cpp @ 1478:1011bd6ab00b

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 01 Aug 2015 21:49:20 +0200
parents 8b654bb91930
children 9f66a12eb8fc
comparison
equal deleted inserted replaced
1477:8b654bb91930 1478:1011bd6ab00b
62 png_access_version_number()); 62 png_access_version_number());
63 } 63 }
64 64
65 TEST(Versions, SQLite) 65 TEST(Versions, SQLite)
66 { 66 {
67 #if defined(__APPLE__)
68 // Under OS X, there might exist minor differences between the
69 // version of the headers and the version of the library, for the
70 // system-wide SQLite. Ignore these differences.
71 #else
67 // http://www.sqlite.org/capi3ref.html#sqlite3_libversion 72 // http://www.sqlite.org/capi3ref.html#sqlite3_libversion
68 ASSERT_EQ(sqlite3_libversion_number(), SQLITE_VERSION_NUMBER); 73 EXPECT_EQ(sqlite3_libversion_number(), SQLITE_VERSION_NUMBER);
69 ASSERT_STREQ(sqlite3_sourceid(), SQLITE_SOURCE_ID); 74 EXPECT_STREQ(sqlite3_sourceid(), SQLITE_SOURCE_ID);
70 ASSERT_STREQ(sqlite3_libversion(), SQLITE_VERSION); 75 EXPECT_STREQ(sqlite3_libversion(), SQLITE_VERSION);
76 #endif
71 77
72 // Ensure that the SQLite version is above 3.7.0. 78 // Ensure that the SQLite version is above 3.7.0.
73 // "sqlite3_create_function_v2" is not defined in previous versions. 79 // "sqlite3_create_function_v2" is not defined in previous versions.
74 ASSERT_GE(SQLITE_VERSION_NUMBER, 3007000); 80 ASSERT_GE(SQLITE_VERSION_NUMBER, 3007000);
75 } 81 }