From: Matthias Clasen Date: Sat, 7 Apr 2012 00:50:34 +0000 (-0400) Subject: Always use '/' in test paths X-Git-Tag: 2.32.1~53 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8db4b949b8fa4577ecff0289776a5c098c575cc5;p=platform%2Fupstream%2Fglib.git Always use '/' in test paths It does not make much sense to use a platform-dependent directory separator in these strings, since they are not filesystem paths. https://bugzilla.gnome.org/show_bug.cgi?id=673216 --- diff --git a/glib/gtestutils.c b/glib/gtestutils.c index fffa4f4..ffdbea3 100644 --- a/glib/gtestutils.c +++ b/glib/gtestutils.c @@ -1412,7 +1412,7 @@ g_test_add_vtable (const char *testpath, return; suite = g_test_get_root(); - segments = g_strsplit (testpath, G_DIR_SEPARATOR_S, -1); + segments = g_strsplit (testpath, "/", -1); for (ui = 0; segments[ui] != NULL; ui++) { const char *seg = segments[ui]; @@ -1471,7 +1471,7 @@ g_test_fail (void) /** * g_test_add_func: - * @testpath: Slash-separated test case path name for the test. + * @testpath: /-separated test case path name for the test. * @test_func: The test function to invoke for this test. * * Create a new test case, similar to g_test_create_case(). However @@ -1503,7 +1503,7 @@ g_test_add_func (const char *testpath, /** * g_test_add_data_func: - * @testpath: Slash-separated test case path name for the test. + * @testpath: /-separated test case path name for the test. * @test_data: Test data argument for the test function. * @test_func: The test function to invoke for this test. *