mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-10-29 23:42:17 +01:00 
			
		
		
		
	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
This commit is contained in:
		| @@ -1412,7 +1412,7 @@ g_test_add_vtable (const char       *testpath, | |||||||
|     return; |     return; | ||||||
|  |  | ||||||
|   suite = g_test_get_root(); |   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++) |   for (ui = 0; segments[ui] != NULL; ui++) | ||||||
|     { |     { | ||||||
|       const char *seg = segments[ui]; |       const char *seg = segments[ui]; | ||||||
| @@ -1471,7 +1471,7 @@ g_test_fail (void) | |||||||
|  |  | ||||||
| /** | /** | ||||||
|  * g_test_add_func: |  * 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. |  * @test_func:  The test function to invoke for this test. | ||||||
|  * |  * | ||||||
|  * Create a new test case, similar to g_test_create_case(). However |  * 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: |  * 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_data:  Test data argument for the test function. | ||||||
|  * @test_func:  The test function to invoke for this test. |  * @test_func:  The test function to invoke for this test. | ||||||
|  * |  * | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user