diff --git a/ChangeLog b/ChangeLog index a6d5016951..e254e8d058 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-09-12 Tim-Philipp Müller + + * tests/check/gst/gsturi.c: + Also check for the other file URI variant on win32. + 2007-09-12 Tim-Philipp Müller * gst/gsturi.c: (gst_uri_get_location): diff --git a/tests/check/gst/gsturi.c b/tests/check/gst/gsturi.c index 111149f512..ca6c2c9c17 100644 --- a/tests/check/gst/gsturi.c +++ b/tests/check/gst/gsturi.c @@ -87,6 +87,18 @@ GST_START_TEST (test_win32_uri) g_free (l); g_free (uri); + /* make sure the other variant with two slashes before the C: (which was + * needed before because of a bug in _get_location()) still works */ + uri = g_strdup ("file://c:/my%20music/foo.ogg"); + l = gst_uri_get_location (uri); + fail_unless (l != NULL); + /* fail_unless_equals_string will screw up here in the failure case + * because the string constant will be appended to the printf format + * message string and contains a '%', that's why we use fail_unless here */ + fail_unless (g_str_equal (l, "c:/my music/foo.ogg"), + "wrong location '%s' returned for URI '%s'", l, uri); + g_free (l); + g_free (uri); } GST_END_TEST;