prefix : '#include <time.h>')
cdata.set('STRUCT_ITIMERSPEC_DEFINITION_MISSING', 1)
endif
+if host_system != 'windows'
+ cdata.set('HAVE_PIPE', 1)
+elif cc.has_function('_pipe', prefix : '#include <io.h>')
+ cdata.set('HAVE_PIPE', 1)
+endif
# Platform deps; only ws2_32 and execinfo for now
platform_deps = []
gst_check_teardown_element (fdsrc);
}
+#ifdef HAVE_PIPE
GST_START_TEST (test_num_buffers)
{
GstElement *src;
}
GST_END_TEST;
+#endif /* HAVE_PIPE */
GST_START_TEST (test_seeking)
{
TCase *tc_chain = tcase_create ("general");
suite_add_tcase (s, tc_chain);
+#ifdef HAVE_PIPE
tcase_add_test (tc_chain, test_num_buffers);
tcase_add_test (tc_chain, test_nonseeking);
+#endif
tcase_add_test (tc_chain, test_seeking);
return s;
#include <sys/socket.h>
#endif
+#ifdef HAVE_PIPE
GST_START_TEST (test_poll_wait)
{
GstPoll *set;
GST_END_TEST;
+#endif /* HAVE_PIPE */
+
GST_START_TEST (test_poll_basic)
{
GstPoll *set;
tcase_add_test (tc_chain, test_poll_controllable);
#else
tcase_skip_broken_test (tc_chain, test_poll_basic);
+#ifdef HAVE_PIPE
+ /* pipe() or _pipe() is not available on UWP */
tcase_skip_broken_test (tc_chain, test_poll_wait);
+#endif
tcase_skip_broken_test (tc_chain, test_poll_wait_stop);
tcase_skip_broken_test (tc_chain, test_poll_wait_restart);
tcase_skip_broken_test (tc_chain, test_poll_wait_flush);