The ofw01 test will hang on RISC-V unless the real FDT is restored at the end 
of the test. This will allow the Sifive test module be found by 
_CPU_Fatal_halt() and avoid an infinite loop.


From 7d285bb7b9d648bef2eb6bd39c5530c56beff287 Mon Sep 17 00:00:00 2001
From: Jiri Gaisler <j...@gaisler.se>
Date: Sun, 28 Mar 2021 14:51:25 +0200
Subject: [PATCH] Restore FDT in ofw01 to avoid test timeout on RISCV

---
 testsuites/libtests/ofw01/init.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/testsuites/libtests/ofw01/init.c b/testsuites/libtests/ofw01/init.c
index 39bc30774a..6006121cc7 100644
--- a/testsuites/libtests/ofw01/init.c
+++ b/testsuites/libtests/ofw01/init.c
@@ -184,6 +184,7 @@ static void Init(rtems_task_argument arg)
   rtems_test_assert(rv == true);
 
   TEST_END();
+  test_bin = NULL;
   rtems_test_exit(0);
 }
 
-- 
2.25.1

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to