diff 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
line wrap: on
line diff
--- a/UnitTestsSources/VersionsTests.cpp	Thu Nov 07 15:35:18 2019 +0100
+++ b/UnitTestsSources/VersionsTests.cpp	Fri Nov 08 17:23:47 2019 +0100
@@ -88,8 +88,15 @@
 #else
   // http://www.sqlite.org/capi3ref.html#sqlite3_libversion
   EXPECT_EQ(sqlite3_libversion_number(), SQLITE_VERSION_NUMBER);
-  EXPECT_STREQ(sqlite3_sourceid(), SQLITE_SOURCE_ID);
   EXPECT_STREQ(sqlite3_libversion(), SQLITE_VERSION);
+  
+  /**
+   * On Orthanc > 1.5.8, we comment out the following test, that is
+   * too strict for some GNU/Linux distributions to apply their own
+   * security fixes. Checking the main version macros is sufficient.
+   * https://bugzilla.suse.com/show_bug.cgi?id=1154550#c2
+   **/
+  // EXPECT_STREQ(sqlite3_sourceid(), SQLITE_SOURCE_ID);
 #endif
 
   // Ensure that the SQLite version is above 3.7.0.