From 8e009baa107698c25131b28092b2ba71e1c66f25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1igo=20Mart=C3=ADnez?= Date: Thu, 14 Dec 2017 17:03:33 +0100 Subject: [PATCH] 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 --- src/ndisc/tests/meson.build | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 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' -] +test_unit = 'test-ndisc-fake' -foreach test_unit: test_units - exe = executable( - test_unit, - test_unit + '.c', - dependencies: test_core_dep, - c_args: test_cflags_platform - ) +exe = executable( + test_unit, + test_unit + '.c', + dependencies: test_core_dep, + c_args: test_cflags_platform +) - test(test_unit, exe) -endforeach +test(test_unit, exe) + +test = 'test-ndisc-linux' + +exe = executable( + test, + test + '.c', + dependencies: test_core_dep, + c_args: test_cflags_platform +)