Mercurial > hg > orthanc
comparison UnitTestsSources/VersionsTests.cpp @ 3564:9a4db48ff5b1
removed too strict unit test on SQLite version
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 08 Nov 2019 17:23:47 +0100 |
parents | 544905c73c7e |
children | 94f4a18a79cc |
comparison
equal
deleted
inserted
replaced
3563:4812825e69fc | 3564:9a4db48ff5b1 |
---|---|
86 // version of the headers and the version of the library, for the | 86 // version of the headers and the version of the library, for the |
87 // system-wide SQLite. Ignore these differences. | 87 // system-wide SQLite. Ignore these differences. |
88 #else | 88 #else |
89 // http://www.sqlite.org/capi3ref.html#sqlite3_libversion | 89 // http://www.sqlite.org/capi3ref.html#sqlite3_libversion |
90 EXPECT_EQ(sqlite3_libversion_number(), SQLITE_VERSION_NUMBER); | 90 EXPECT_EQ(sqlite3_libversion_number(), SQLITE_VERSION_NUMBER); |
91 EXPECT_STREQ(sqlite3_sourceid(), SQLITE_SOURCE_ID); | |
92 EXPECT_STREQ(sqlite3_libversion(), SQLITE_VERSION); | 91 EXPECT_STREQ(sqlite3_libversion(), SQLITE_VERSION); |
92 | |
93 /** | |
94 * On Orthanc > 1.5.8, we comment out the following test, that is | |
95 * too strict for some GNU/Linux distributions to apply their own | |
96 * security fixes. Checking the main version macros is sufficient. | |
97 * https://bugzilla.suse.com/show_bug.cgi?id=1154550#c2 | |
98 **/ | |
99 // EXPECT_STREQ(sqlite3_sourceid(), SQLITE_SOURCE_ID); | |
93 #endif | 100 #endif |
94 | 101 |
95 // Ensure that the SQLite version is above 3.7.0. | 102 // Ensure that the SQLite version is above 3.7.0. |
96 // "sqlite3_create_function_v2" is not defined in previous versions. | 103 // "sqlite3_create_function_v2" is not defined in previous versions. |
97 ASSERT_GE(SQLITE_VERSION_NUMBER, 3007000); | 104 ASSERT_GE(SQLITE_VERSION_NUMBER, 3007000); |