Blame SOURCES/0421-grub-core-tests-lib-functional_test.c-Don-t-stop-on-.patch

f96e0b
From 64e8517e63da3311ed5016936b3d5a26411f7872 Mon Sep 17 00:00:00 2001
f96e0b
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
f96e0b
Date: Sat, 4 May 2013 13:54:08 +0200
f96e0b
Subject: [PATCH 421/482] 	* grub-core/tests/lib/functional_test.c: Don't
f96e0b
 stop on first failed 	test.
f96e0b
f96e0b
---
f96e0b
 ChangeLog                             | 5 +++++
f96e0b
 grub-core/tests/lib/functional_test.c | 6 +++++-
f96e0b
 2 files changed, 10 insertions(+), 1 deletion(-)
f96e0b
f96e0b
diff --git a/ChangeLog b/ChangeLog
f96e0b
index 8d41517..d5f9bb9 100644
f96e0b
--- a/ChangeLog
f96e0b
+++ b/ChangeLog
f96e0b
@@ -1,5 +1,10 @@
f96e0b
 2013-05-04  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
 
f96e0b
+	* grub-core/tests/lib/functional_test.c: Don't stop on first failed
f96e0b
+	test.
f96e0b
+
f96e0b
+2013-05-04  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
+
f96e0b
 	* grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
f96e0b
 	line of timeout as it may contain the rest of long line.
f96e0b
 
f96e0b
diff --git a/grub-core/tests/lib/functional_test.c b/grub-core/tests/lib/functional_test.c
f96e0b
index c70e1ad..957354e 100644
f96e0b
--- a/grub-core/tests/lib/functional_test.c
f96e0b
+++ b/grub-core/tests/lib/functional_test.c
f96e0b
@@ -33,7 +33,11 @@ grub_functional_test (grub_extcmd_context_t ctxt __attribute__ ((unused)),
f96e0b
   int ok = 1;
f96e0b
 
f96e0b
   FOR_LIST_ELEMENTS (test, grub_test_list)
f96e0b
-    ok = ok && !grub_test_run (test);
f96e0b
+    {
f96e0b
+      grub_errno = 0;
f96e0b
+      ok = ok && !grub_test_run (test);
f96e0b
+      grub_errno = 0;
f96e0b
+    }
f96e0b
   if (ok)
f96e0b
     grub_printf ("ALL TESTS PASSED\n");
f96e0b
   else
f96e0b
-- 
f96e0b
1.8.2.1
f96e0b