summary refs log tree commit diff
path: root/dispatcher/tests
diff options
context:
space:
mode:
Diffstat (limited to 'dispatcher/tests')
-rw-r--r--dispatcher/tests/meson.build18
-rw-r--r--dispatcher/tests/test-dispatcher-envp.c4
2 files changed, 11 insertions, 11 deletions
diff --git a/dispatcher/tests/meson.build b/dispatcher/tests/meson.build
index 53108e79..84b4b61c 100644
--- a/dispatcher/tests/meson.build
+++ b/dispatcher/tests/meson.build
@@ -1,24 +1,24 @@
-# SPDX-License-Identifier: LGPL-2.1+
-
-test_unit = 'test-dispatcher-envp'
+# SPDX-License-Identifier: LGPL-2.1-or-later
 
 exe = executable(
-  test_unit,
-  [test_unit + '.c', nmdbus_dispatcher_sources],
+  'test-dispatcher-envp',
+  [
+    'test-dispatcher-envp.c',
+    nmdbus_dispatcher_sources,
+  ],
   include_directories: dispatcher_inc,
   dependencies: [
     libnm_nm_default_dep,
-    libnm_utils_base_dep,
+    libnm_glib_aux_dep,
   ],
   c_args: [
-    '-DNETWORKMANAGER_COMPILATION_TEST',
-    '-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_CLIENT',
+    '-DG_LOG_DOMAIN="test"',
   ] + introspection_extra_cflags,
   link_with: libnm_dispatcher_core,
 )
 
 test(
-  'dispatcher/' + test_unit,
+  'dispatcher/test-dispatcher-envp',
   test_script,
   args: test_args + [exe.full_path()],
 )
diff --git a/dispatcher/tests/test-dispatcher-envp.c b/dispatcher/tests/test-dispatcher-envp.c
index 2e64dc58..4c37dd6c 100644
--- a/dispatcher/tests/test-dispatcher-envp.c
+++ b/dispatcher/tests/test-dispatcher-envp.c
@@ -1,9 +1,9 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
+/* SPDX-License-Identifier: GPL-2.0-or-later */
 /*
  * Copyright (C) 2011 Red Hat, Inc.
  */
 
-#include "nm-default.h"
+#include "libnm/nm-default-client.h"
 
 #include <arpa/inet.h>
 #include <stdlib.h>