From e1cacbdc9e0a2d65e57fd9112fca66ece631e616 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Wed, 23 May 2007 15:54:28 +0000 Subject: [PATCH] tests/check/elements/playbin.c: Use /dev/zero instead of /dev/urandom to produce an invalid subtitle file. Avoids flu... Original commit message from CVS: * tests/check/elements/playbin.c: (test_suburi_error_unknowntype): Use /dev/zero instead of /dev/urandom to produce an invalid subtitle file. Avoids flukes where the input gets typefound to some valid but useless type. --- ChangeLog | 7 +++++++ tests/check/elements/playbin.c | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 31774071ed..400a828599 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-05-23 Jan Schmidt + + * tests/check/elements/playbin.c: (test_suburi_error_unknowntype): + Use /dev/zero instead of /dev/urandom to produce an invalid subtitle + file. Avoids flukes where the input gets typefound to some valid but + useless type. + 2007-05-22 Tim-Philipp Müller * tests/check/Makefile.am: diff --git a/tests/check/elements/playbin.c b/tests/check/elements/playbin.c index 9ae0e1469f..d9978bb751 100644 --- a/tests/check/elements/playbin.c +++ b/tests/check/elements/playbin.c @@ -106,10 +106,10 @@ DEFINE_TEST (test_suburi_error_unknowntype) g_object_set (playbin, "video-sink", fakesink, NULL); /* suburi file format unknown: playbin should just ignore the suburi and - * preroll normally (if /dev/urandom does not exist, this test should behave + * preroll normally (if /dev/zero does not exist, this test should behave * the same as test_suburi_error_invalidfile() */ g_object_set (playbin, "uri", "redvideo://", NULL); - g_object_set (playbin, "suburi", "file:///dev/urandom", NULL); + g_object_set (playbin, "suburi", "file:///dev/zero", NULL); fail_unless_equals_int (gst_element_set_state (playbin, GST_STATE_READY), GST_STATE_CHANGE_SUCCESS); fail_unless_equals_int (gst_element_set_state (playbin, GST_STATE_PAUSED),