Commit 8db4b949 authored by Matthias Clasen's avatar Matthias Clasen

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
parent e52cf810
......@@ -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.
*
......
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