meson: tests: fix build of tcp test on unix
authorTim-Philipp Müller <tim@centricular.com>
Tue, 16 Jan 2018 19:22:16 +0000 (19:22 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 16 Jan 2018 19:22:16 +0000 (19:22 +0000)
Need to add gio-unix-2.0 dep to pipelines/tcp test otherwise it
won't find the gio/gunixfdmessage.h header which is not in the
same dir as the other gio headers. This issue was masked before
because we didn't include config.h so HAVE_GIO_UNIX_2_0
wasn't defined.

tests/check/meson.build

index c3e93ef..ec45928 100644 (file)
@@ -62,7 +62,7 @@ base_tests = [
   [ 'pipelines/oggmux.c', not ogg_dep.found(), [ ogg_dep, ] ],
   [ 'pipelines/streamsynchronizer.c' ],
   # FIXME: tcp test on windows/msvc
-  [ 'pipelines/tcp.c', not core_conf.has('HAVE_SYS_SOCKET_H') or not core_conf.has('HAVE_UNISTD_H') ],
+  [ 'pipelines/tcp.c', not core_conf.has('HAVE_SYS_SOCKET_H') or not core_conf.has('HAVE_UNISTD_H'), [giounix_dep] ],
   [ 'pipelines/theoraenc.c', not theoraenc_dep.found(), [ theoraenc_dep ] ],
   [ 'pipelines/vorbisenc.c', not vorbisenc_dep.found() ],
   [ 'pipelines/vorbisdec.c', not vorbisenc_dep.found(),],