summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNelson Benítez León <nbenitezl@gmail.com>2023-04-24 23:52:33 -0400
committerFelipe Borges <felipeborges@gnome.org>2023-05-02 11:33:31 +0000
commit6fb6ba1dc99da6a9713de98f3aca6fd45997ead8 (patch)
treebc4bedefde10ce68c8291b68c8edc978131e5c42 /tests
parentb1850b5c8abdeaf12b68ebc88b96ca047f7f1a98 (diff)
downloadgnome-control-center-6fb6ba1dc99da6a9713de98f3aca6fd45997ead8.tar.gz
meson: improve comment and fix deprecated functions
- Clarify that 'mm-glib' dep is for ModemManager (not Network Manager which is below). The comment also helps people which may confuse it with glibmm library. - Fix following Meson warning about two deprecated functions: WARNING: Deprecated features used: * 0.56.0: {'dependency.get_pkgconfig_variable', 'meson.source_root'}
Diffstat (limited to 'tests')
-rw-r--r--tests/datetime/meson.build2
-rw-r--r--tests/network/meson.build2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/datetime/meson.build b/tests/datetime/meson.build
index c9f07877c..021036881 100644
--- a/tests/datetime/meson.build
+++ b/tests/datetime/meson.build
@@ -14,7 +14,7 @@ env = [
]
cflags = [
'-DTEST_SRCDIR="@0@"'.format(meson.current_source_dir()),
- '-DSRCDIR="@0@"'.format(meson.source_root() + '/panels/datetime')
+ '-DSRCDIR="@0@"'.format(meson.project_source_root() + '/panels/datetime')
]
foreach unit: test_units
diff --git a/tests/network/meson.build b/tests/network/meson.build
index e09ec5cab..a81e64753 100644
--- a/tests/network/meson.build
+++ b/tests/network/meson.build
@@ -5,7 +5,7 @@ cflags = [
'-DTEST_SRCDIR="@0@"'.format(meson.current_source_dir()),
'-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_WITH_GLIB',
'-DNETWORKMANAGER_COMPILATION_TEST',
- '-DTEST_NM_SERVICE="@0@"'.format(join_paths(meson.source_root(), 'tests', 'network', 'nm-utils', 'test-networkmanager-service.py')),
+ '-DTEST_NM_SERVICE="@0@"'.format(join_paths(meson.project_source_root(), 'tests', 'network', 'nm-utils', 'test-networkmanager-service.py')),
]
exe = executable(