tests: x264enc: Enable test on Windows
authorSeungha Yang <seungha.yang@navercorp.com>
Mon, 15 Jul 2019 13:38:35 +0000 (22:38 +0900)
committerSeungha Yang <seungha.yang@navercorp.com>
Mon, 15 Jul 2019 13:46:18 +0000 (22:46 +0900)
... with removal of pointless unistd.h dependency.
Note that full dependency listing is required to run unit test
executable binary on Windows uninstalled environment.

tests/check/elements/x264enc.c
tests/check/meson.build

index 6c64d50..9490f68 100644 (file)
@@ -20,8 +20,6 @@
  * Boston, MA 02110-1301, USA.
  */
 
-#include <unistd.h>
-
 #include <gst/check/gstcheck.h>
 
 /* For ease of programming we use globals to keep refs for our floating
index f07dca0..306791d 100644 (file)
@@ -1,5 +1,6 @@
 # name, condition when to skip the test and extra dependencies
 ugly_tests = [
+  [ 'elements/x264enc', not x264_dep.found(), [ x264_dep, gmodule_dep ] ],
   [ 'elements/xingmux' ],
   [ 'generic/states' ],
 ]
@@ -9,7 +10,6 @@ if host_machine.system() != 'windows'
   ugly_tests += [
     [ 'elements/amrnbenc', not amrnb_dep.found() ],
     [ 'elements/mpeg2dec', not mpeg2_dep.found() or not cdata.has('HAVE_UNISTD_H'), [ gstvideo_dep ] ],
-    [ 'elements/x264enc', not x264_dep.found() or not cdata.has('HAVE_UNISTD_H') ],
   ]
 endif
 
@@ -28,7 +28,8 @@ if gst_dep.type_name() == 'pkgconfig'
                  pbase.get_pkgconfig_variable('pluginsdir')]
 endif
 
-test_deps = [gst_dep, gstbase_dep, gstcheck_dep, gstaudio_dep, gstapp_dep, gstfft_dep]
+test_deps = [gst_dep, gstbase_dep, gstcheck_dep, gstaudio_dep, gstapp_dep,
+             gstfft_dep, gstvideo_dep, gstpbutils_dep]
 
 libm = cc.find_library('m', required : false)