diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2009-08-21 01:17:18 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2010-05-11 19:02:54 +0100 |
commit | 54986f85c6ebb91506b5db8853598a109b6a15f3 (patch) | |
tree | 10412b52b13d10c24bba3d83f62d97469f04bbf4 /tests/icles | |
parent | 039604b11fb151135a19b540f0de9d8069121145 (diff) |
tests: fix test-oss4 to treat an empty device name the same as a NULL name
Diffstat (limited to 'tests/icles')
-rw-r--r-- | 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 6c3dac1ef..f15875d7b 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 */ |