Commit 362d7872 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠
Browse files

tests/check/gst/gsturi.c: Also check for the other file URI variant on win32.

Original commit message from CVS:
* tests/check/gst/gsturi.c:
Also check for the other file URI variant on win32.
parent 3f967a8b
2007-09-12 Tim-Philipp Müller <tim at centricular dot net>
* tests/check/gst/gsturi.c:
Also check for the other file URI variant on win32.
2007-09-12 Tim-Philipp Müller <tim at centricular dot net>
* gst/gsturi.c: (gst_uri_get_location):
......
......@@ -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;
......
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