Skip to content

Commit

Permalink
runtests.c: Catch some failure to bump XML_*_VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
hartwork committed Aug 2, 2017
1 parent e5eb04b commit 642ec44
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions expat/tests/runtests.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 642ec44

Please sign in to comment.