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

This commit is contained in:
Tim-Philipp Müller 2009-08-21 01:17:18 +01:00
parent 039604b11f
commit 54986f85c6

View file

@ -183,7 +183,8 @@ probe_element (const gchar * name)
* if we try to query the "device-name" property when the device isn't open */ * 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_set (element, "device", "/dev/does/not/exist", NULL);
g_object_get (element, "device-name", &devname, 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 */ /* and now for real */