[PATCH 2/3] 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.
---
 src/ndisc/tests/meson.build | 34 +++++++++++++++++++---------------
 1 file changed, 19 insertions(+), 15 deletions(-)

diff --git a/src/ndisc/tests/meson.build b/src/ndisc/tests/meson.build
index 83ffcc384..acd5a6ec8 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
+)
-- 
2.15.1



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]