summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hergert <chergert@redhat.com>2023-03-16 16:15:13 -0700
committerChristian Hergert <chergert@redhat.com>2023-03-22 16:44:35 -0700
commitaf21ae834387bd0e0ea7816ba99b06555b742491 (patch)
treea144970507bbf694ea9ea7149a1556fd6a8452a4
parent091d591334094d0842b2ab5085ea30f45e8c4a5c (diff)
downloadlibpeas-af21ae834387bd0e0ea7816ba99b06555b742491.tar.gz
tests: use major version for introspection version
These need to match what we're building so get the value from config.h.
-rw-r--r--meson.build1
-rw-r--r--tests/libpeas/testing/testing.c2
-rw-r--r--tests/testing-util/testing-util.c2
3 files changed, 3 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index 827fcba..8a1b38b 100644
--- a/meson.build
+++ b/meson.build
@@ -78,6 +78,7 @@ config_h.set_quoted('PACKAGE_URL', 'https://wiki.gnome.org/Projects/Libpeas')
config_h.set_quoted('PACKAGE_URL', 'https://wiki.gnome.org/Projects/Libpeas')
config_h.set_quoted('PACKAGE_VERSION', version)
config_h.set_quoted('VERSION', version)
+config_h.set_quoted('VERSION_MAJOR_S', '@0@'.format(version_major))
config_h.set_quoted('GETTEXT_PACKAGE', package_string)
diff --git a/tests/libpeas/testing/testing.c b/tests/libpeas/testing/testing.c
index 49b94f3..011c660 100644
--- a/tests/libpeas/testing/testing.c
+++ b/tests/libpeas/testing/testing.c
@@ -50,7 +50,7 @@ testing_init (gint *argc,
g_irepository_require_private (g_irepository_get_default (),
BUILDDIR "/tests/libpeas/introspection",
- "Introspection", "1.0", 0, &error);
+ "Introspection", VERSION_MAJOR_S, 0, &error);
g_assert_no_error (error);
initialized = TRUE;
diff --git a/tests/testing-util/testing-util.c b/tests/testing-util/testing-util.c
index f35c806..7e751c8 100644
--- a/tests/testing-util/testing-util.c
+++ b/tests/testing-util/testing-util.c
@@ -209,7 +209,7 @@ testing_util_init (void)
g_irepository_require_private (g_irepository_get_default (),
BUILDDIR "/libpeas",
- "Peas", "1.0", 0, &error);
+ "Peas", VERSION_MAJOR_S, 0, &error);
g_assert_no_error (error);
initialized = TRUE;