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
This commit is contained in:
Iñigo Martínez 2017-12-14 17:03:33 +01:00 committed by Thomas Haller
parent a09f3aaa79
commit 8e009baa10

View file

@ -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
)