mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 19:36:18 +01:00
Try to fix the version test on builders
This commit is contained in:
parent
5b43de2932
commit
b52294d14c
@ -75,6 +75,10 @@ test_language_names (void)
|
||||
static void
|
||||
test_version (void)
|
||||
{
|
||||
g_print ("(header %d.%d.%d library %d.%d.%d) ",
|
||||
GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION,
|
||||
glib_major_version, glib_minor_version, glib_micro_version);
|
||||
|
||||
g_assert (glib_check_version (GLIB_MAJOR_VERSION,
|
||||
GLIB_MINOR_VERSION,
|
||||
GLIB_MICRO_VERSION) == NULL);
|
||||
@ -90,9 +94,12 @@ test_version (void)
|
||||
g_assert (glib_check_version (GLIB_MAJOR_VERSION,
|
||||
GLIB_MINOR_VERSION + 1,
|
||||
0) != NULL);
|
||||
/* don't use + 1 here, since a +/-1 difference can
|
||||
* happen due to post-release version bumps in git
|
||||
*/
|
||||
g_assert (glib_check_version (GLIB_MAJOR_VERSION,
|
||||
GLIB_MINOR_VERSION,
|
||||
GLIB_MICRO_VERSION + 1) != NULL);
|
||||
GLIB_MICRO_VERSION + 3) != NULL);
|
||||
}
|
||||
|
||||
static const gchar *argv0;
|
||||
|
Loading…
Reference in New Issue
Block a user