mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 21:12:26 +00:00
tests/check/elements/souphttpsrc.c: Increase the timeout for the internet tests to 250 seconds and check for NULL cap...
Original commit message from CVS: * tests/check/elements/souphttpsrc.c: (got_buffer), (souphttpsrc_suite): Increase the timeout for the internet tests to 250 seconds and check for NULL caps instead of just crashing. The real fix would be to implement an shoutcast server for the unit test instead of relying on a working internet connection. Fixes bug #521749.
This commit is contained in:
parent
b1877117fa
commit
3392728608
1 changed files with 7 additions and 2 deletions
|
@ -214,8 +214,9 @@ got_buffer (GstElement * fakesink, GstBuffer * buf, GstPad * pad,
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* Otherwise they _must_ be "application/x-icy" */
|
/* Otherwise they _must_ be "application/x-icy" */
|
||||||
|
fail_unless (GST_BUFFER_CAPS (buf) != NULL);
|
||||||
s = gst_caps_get_structure (GST_BUFFER_CAPS (buf), 0);
|
s = gst_caps_get_structure (GST_BUFFER_CAPS (buf), 0);
|
||||||
assert_equals_string (gst_structure_get_name (s), "application/x-icy");
|
fail_unless_equals_string (gst_structure_get_name (s), "application/x-icy");
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_START_TEST (test_icy_stream)
|
GST_START_TEST (test_icy_stream)
|
||||||
|
@ -305,6 +306,7 @@ souphttpsrc_suite (void)
|
||||||
|
|
||||||
Suite *s = suite_create ("souphttpsrc");
|
Suite *s = suite_create ("souphttpsrc");
|
||||||
TCase *tc_chain = tcase_create ("general");
|
TCase *tc_chain = tcase_create ("general");
|
||||||
|
TCase *tc_internet = tcase_create ("internet");
|
||||||
|
|
||||||
suite_add_tcase (s, tc_chain);
|
suite_add_tcase (s, tc_chain);
|
||||||
run_server (&http_port, &https_port);
|
run_server (&http_port, &https_port);
|
||||||
|
@ -315,7 +317,10 @@ souphttpsrc_suite (void)
|
||||||
tcase_add_test (tc_chain, test_not_found);
|
tcase_add_test (tc_chain, test_not_found);
|
||||||
tcase_add_test (tc_chain, test_forbidden);
|
tcase_add_test (tc_chain, test_forbidden);
|
||||||
tcase_add_test (tc_chain, test_cookies);
|
tcase_add_test (tc_chain, test_cookies);
|
||||||
tcase_add_test (tc_chain, test_icy_stream);
|
|
||||||
|
suite_add_tcase (s, tc_internet);
|
||||||
|
tcase_set_timeout (tc_internet, 250);
|
||||||
|
tcase_add_test (tc_internet, test_icy_stream);
|
||||||
|
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue