From: <tp...@ke...> - 2009-08-21 00:20:12
|
Module: gst-plugins-bad Branch: master Commit: 222cc7ef436f404acbfca5f1c10d6d97d97f69c0 URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=222cc7ef436f404acbfca5f1c10d6d97d97f69c0 Author: Tim-Philipp Müller <tim...@co...> Date: Fri Aug 21 01:17:18 2009 +0100 tests: fix test-oss4 to treat an empty device name the same as a NULL name --- tests/icles/test-oss4.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/tests/icles/test-oss4.c b/tests/icles/test-oss4.c index 6c3dac1..f15875d 100644 --- a/tests/icles/test-oss4.c +++ b/tests/icles/test-oss4.c @@ -183,7 +183,8 @@ probe_element (const gchar * name) * if we try to query the "device-name" property when the device isn't open */ g_object_set (element, "device", "/dev/does/not/exist", NULL); g_object_get (element, "device-name", &devname, NULL); - g_assert (devname == NULL); + GST_LOG ("devname: '%s'", GST_STR_NULL (devname)); + g_assert (devname == NULL || *devname == '\0'); /* and now for real */ |