mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-22 17:08:53 +02:00
gtestutils: Do not make a subtest to Bail out! the root one
This is something that a base test should decide, so if a subtest fails it's up to the caller to decide whether to bail out the whole suite or just the subtest.
This commit is contained in:
@@ -1219,16 +1219,7 @@ g_test_log (GTestLogType lbit,
|
||||
while ((line = strchr (line, '\n')))
|
||||
*(line++) = ' ';
|
||||
|
||||
if (is_subtest ())
|
||||
{
|
||||
g_test_tap_print (subtest_level, FALSE, "Bail out! %s\n", message);
|
||||
g_test_tap_print (0, FALSE, "Bail out!\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
g_test_tap_print (0, FALSE, "Bail out! %s\n", message);
|
||||
}
|
||||
|
||||
g_test_tap_print (subtest_level, FALSE, "Bail out! %s\n", message);
|
||||
g_free (message);
|
||||
}
|
||||
else if (g_test_verbose ())
|
||||
|
Reference in New Issue
Block a user