mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-10-26 05:52:16 +01:00 
			
		
		
		
	tests: Fix checks for line endings in spawn-test on Windows
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
		| @@ -97,7 +97,10 @@ test_spawn_basics (void) | |||||||
|                                       &output, &erroutput, NULL, &err); |                                       &output, &erroutput, NULL, &err); | ||||||
|   g_assert_no_error (err); |   g_assert_no_error (err); | ||||||
|   g_assert_true (result); |   g_assert_true (result); | ||||||
|   g_assert_cmpstr (output, ==, "line 2\nline first\nline last\n"); |   if (strchr (output, '\r') != NULL) | ||||||
|  |     g_assert_cmpstr (output, ==, "line 2\r\nline first\r\nline last\r\n"); | ||||||
|  |   else | ||||||
|  |     g_assert_cmpstr (output, ==, "line 2\nline first\nline last\n"); | ||||||
|   g_assert_cmpstr (erroutput, ==, ""); |   g_assert_cmpstr (erroutput, ==, ""); | ||||||
|  |  | ||||||
|   g_free (output); |   g_free (output); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user