From 222cc7ef436f404acbfca5f1c10d6d97d97f69c0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 21 Aug 2009 01:17:18 +0100 Subject: [PATCH] tests: fix test-oss4 to treat an empty device name the same as a NULL name --- tests/icles/test-oss4.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 */ -- 2.7.4