gtestutils: fix "-p" logic
authorDan Winship <danw@gnome.org>
Sat, 25 Aug 2012 15:54:31 +0000 (11:54 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 19 Dec 2012 19:35:11 +0000 (14:35 -0500)
commit723a8f55880f1e7bf1b475901ce40e6cd443b72d
treee0babf4d7364976ae83f6fa29a3ae6a6f0ee5999
parentea06ec80634ff8f22882f3bc92effb10ac294e41
gtestutils: fix "-p" logic

If you had two tests "/foo/bar" and "/foo/bar/baz", and ran the test
program with "-p /foo/bar/baz", it would run "/foo/bar" too. Fix that.
And add a test to tests/testing for it.

https://bugzilla.gnome.org/show_bug.cgi?id=679683
glib/gtestutils.c
glib/tests/testing.c