From f5b99d8fcebe9ec00a2c9c9f550d25caa253bac1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 25 Jan 2018 12:06:57 +0000 Subject: [PATCH] tests: mountpoints: add more checks for mount point path matching https://bugzilla.gnome.org/show_bug.cgi?id=771555 --- tests/check/gst/mountpoints.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/check/gst/mountpoints.c b/tests/check/gst/mountpoints.c index 31a223e..6a35bd23 100644 --- a/tests/check/gst/mountpoints.c +++ b/tests/check/gst/mountpoints.c @@ -69,6 +69,9 @@ static const gchar *paths[] = { "/tark/bar/baz", "/tark/bar/baz/t", "/boozop", + "/raw", + "/raw/video", + "/raw/snapshot", }; GST_START_TEST (test_match) @@ -124,6 +127,14 @@ GST_START_TEST (test_match) fail_unless (tmp == f[4]); fail_unless (matched == 13); g_object_unref (tmp); + tmp = gst_rtsp_mount_points_match (mounts, "/raw/video", &matched); + fail_unless (tmp == f[8]); + fail_unless (matched == 10); + g_object_unref (tmp); + tmp = gst_rtsp_mount_points_match (mounts, "/raw/snapshot", &matched); + fail_unless (tmp == f[9]); + fail_unless (matched == 13); + g_object_unref (tmp); g_object_unref (mounts); } -- 2.7.4