summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIñigo Martínez <inigomartinez@gmail.com>2017-12-14 17:03:33 +0100
committerThomas Haller <thaller@redhat.com>2017-12-14 20:07:23 +0100
commit8e009baa107698c25131b28092b2ba71e1c66f25 (patch)
treeb532d45beb83138d4047c5540d0a1b47ccc6a17a
parenta09f3aaa793a8fd1a0b320e314b6d244920266f5 (diff)
downloadNetworkManager-8e009baa107698c25131b28092b2ba71e1c66f25.tar.gz
build: fix test-ndisc-linux test
The `test-ndisc-linux` test is being run as an unit test. However, it is not meant to be run as one of them. This patch simply builts it as not installable binary. https://mail.gnome.org/archives/networkmanager-list/2017-December/msg00050.html
-rw-r--r--src/ndisc/tests/meson.build34
1 files changed, 19 insertions, 15 deletions
diff --git a/src/ndisc/tests/meson.build b/src/ndisc/tests/meson.build
index 83ffcc3843..acd5a6ec80 100644
--- a/src/ndisc/tests/meson.build
+++ b/src/ndisc/tests/meson.build
@@ -1,15 +1,19 @@
-test_units = [
- 'test-ndisc-fake',
- 'test-ndisc-linux'
-]
-
-foreach test_unit: test_units
- exe = executable(
- test_unit,
- test_unit + '.c',
- dependencies: test_core_dep,
- c_args: test_cflags_platform
- )
-
- test(test_unit, exe)
-endforeach
+test_unit = 'test-ndisc-fake'
+
+exe = executable(
+ test_unit,
+ test_unit + '.c',
+ dependencies: test_core_dep,
+ c_args: test_cflags_platform
+)
+
+test(test_unit, exe)
+
+test = 'test-ndisc-linux'
+
+exe = executable(
+ test,
+ test + '.c',
+ dependencies: test_core_dep,
+ c_args: test_cflags_platform
+)