# HG changeset patch # User Sebastien Jodogne # Date 1438458560 -7200 # Node ID 1011bd6ab00b807735ecee6dddaa5edb6ff27306 # Parent 8b654bb9193004a3704e19e135834ad9edf00faf fix diff -r 8b654bb91930 -r 1011bd6ab00b UnitTestsSources/VersionsTests.cpp --- a/UnitTestsSources/VersionsTests.cpp Sat Aug 01 21:43:24 2015 +0200 +++ b/UnitTestsSources/VersionsTests.cpp Sat Aug 01 21:49:20 2015 +0200 @@ -64,10 +64,16 @@ TEST(Versions, SQLite) { +#if defined(__APPLE__) + // Under OS X, there might exist minor differences between the + // version of the headers and the version of the library, for the + // system-wide SQLite. Ignore these differences. +#else // http://www.sqlite.org/capi3ref.html#sqlite3_libversion - ASSERT_EQ(sqlite3_libversion_number(), SQLITE_VERSION_NUMBER); - ASSERT_STREQ(sqlite3_sourceid(), SQLITE_SOURCE_ID); - ASSERT_STREQ(sqlite3_libversion(), SQLITE_VERSION); + EXPECT_EQ(sqlite3_libversion_number(), SQLITE_VERSION_NUMBER); + EXPECT_STREQ(sqlite3_sourceid(), SQLITE_SOURCE_ID); + EXPECT_STREQ(sqlite3_libversion(), SQLITE_VERSION); +#endif // Ensure that the SQLite version is above 3.7.0. // "sqlite3_create_function_v2" is not defined in previous versions.