]> granicus.if.org Git - libexpat/commitdiff
runtests.c: Catch some failure to bump XML_*_VERSION
authorSebastian Pipping <sebastian@pipping.org>
Wed, 2 Aug 2017 13:33:00 +0000 (15:33 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Wed, 2 Aug 2017 13:40:38 +0000 (15:40 +0200)
expat/tests/runtests.c

index 8847cafa53d1d7c52eaeef82d91d3bba2b54a9b3..572473c9c59cd04b3f75403fe3949377489aa526 100644 (file)
@@ -7736,6 +7736,11 @@ START_TEST(test_misc_version)
         fail("Unable to parse version text");
     if (!versions_equal(&read_version, &parsed_version))
         fail("Version mismatch");
+
+#if ! defined(XML_UNICODE)
+    if (strcmp(version_text, "expat_2.2.2"))  /* needs bump on releases */
+        fail("XML_*_VERSION in expat.h out of sync?\n");
+#endif  /* ! defined(XML_UNICODE) */
 }
 END_TEST