mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 14:06:15 +01:00
testing: Run tests specified with -p in the order specified
Closes: #1763 Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
parent
48cc3abede
commit
a537e538be
@ -1242,6 +1242,11 @@ parse_args (gint *argc_p,
|
||||
exit (0);
|
||||
}
|
||||
}
|
||||
|
||||
/* We've been prepending to test_paths, but its order matters, so
|
||||
* permute it */
|
||||
test_paths = g_slist_reverse (test_paths);
|
||||
|
||||
/* collapse argv */
|
||||
e = 1;
|
||||
for (i = 1; i < argc; i++)
|
||||
|
@ -122,9 +122,9 @@ test_message (void)
|
||||
(gchar*)argv0,
|
||||
NULL,
|
||||
"--GTestSubprocess",
|
||||
"-p", "/glib/testing/protocol/debug",
|
||||
"-p", "/glib/testing/protocol/message",
|
||||
"-p", "/glib/testing/protocol/gtest-message",
|
||||
"-p", "/glib/testing/protocol/message",
|
||||
"-p", "/glib/testing/protocol/debug",
|
||||
NULL
|
||||
};
|
||||
GTestLogBuffer* tlb;
|
||||
|
@ -1163,12 +1163,10 @@ test_tap (void)
|
||||
NULL, NULL, &output, NULL, &status,
|
||||
&error);
|
||||
g_assert_no_error (error);
|
||||
/* FIXME: Tests are run in an order that is the reverse of the order
|
||||
* of -p options. */
|
||||
g_assert_nonnull (strstr (output, "\nok 1 /b/a\n"));
|
||||
g_assert_nonnull (strstr (output, "\nok 2 /b/b\n"));
|
||||
g_assert_nonnull (strstr (output, "\nok 3 /c/a\n"));
|
||||
g_assert_nonnull (strstr (output, "\nok 4 /c/a\n"));
|
||||
g_assert_nonnull (strstr (output, "\nok 1 /c/a\n"));
|
||||
g_assert_nonnull (strstr (output, "\nok 2 /c/a\n"));
|
||||
g_assert_nonnull (strstr (output, "\nok 3 /b/a\n"));
|
||||
g_assert_nonnull (strstr (output, "\nok 4 /b/b\n"));
|
||||
g_assert_nonnull (strstr (output, "\n1..4\n"));
|
||||
|
||||
g_spawn_check_exit_status (status, &error);
|
||||
|
Loading…
Reference in New Issue
Block a user