tests: check location isn't truncated

Test covering the recent commit where location='".abc' won't get truncated
to '.ab' anymore

https://bugzilla.gnome.org/show_bug.cgi?id=688625
This commit is contained in:
Luis de Bethencourt 2015-03-27 16:23:40 +00:00
parent 555e0211c8
commit ae0b2ec46b

View file

@ -362,6 +362,11 @@ GST_START_TEST (test_uri_interface)
fail_unless_equals_string (location, "file:///foo/b%3Fr");
g_free (location);
g_object_set (G_OBJECT (filesink), "location", "\".donotexist", NULL);
g_object_get (G_OBJECT (filesink), "location", &location, NULL);
fail_unless_equals_string (location, "\".donotexist");
g_free (location);
/* should fail with other hostnames */
fail_if (gst_uri_handler_set_uri (GST_URI_HANDLER (filesink),
"file://hostname/foo/foo", NULL));