Commit 54986f85 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller

tests: fix test-oss4 to treat an empty device name the same as a NULL name

parent 039604b1
......@@ -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 */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment