mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-20 22:48:22 +00:00
* grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
test failures, so that a failing unit test correctly causes 'make check' to fail.
This commit is contained in:
1 parent
45d26abb40
commit
c3fc8394a0
2 files changed
+15
-5
No files matched your search
@@ -225,10 +225,14 @@ grub_test_run (grub_test_t test)
|
||||
failure->line, (failure->message ? : "<no message>"));
|
||||
|
||||
if (!failure_list)
|
||||
grub_printf ("%s: PASS\n", test->name);
|
||||
{
|
||||
grub_printf ("%s: PASS\n", test->name);
|
||||
return GRUB_ERR_NONE;
|
||||
}
|
||||
else
|
||||
grub_printf ("%s: FAIL\n", test->name);
|
||||
|
||||
free_failures ();
|
||||
return GRUB_ERR_NONE;
|
||||
{
|
||||
grub_printf ("%s: FAIL\n", test->name);
|
||||
free_failures ();
|
||||
return GRUB_ERR_TEST_FAILURE;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user