tests: x264enc: Enable test on Windows

... with removal of pointless unistd.h dependency.
Note that full dependency listing is required to run unit test
executable binary on Windows uninstalled environment.
This commit is contained in:
Seungha Yang 2019-07-15 22:38:35 +09:00
parent 985ace70e0
commit fe92e92c14
2 changed files with 3 additions and 4 deletions

View 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

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