[rtems commit] libtests/capture01: Force error if SMP enabled

Sebastian Huber sebh at rtems.org
Mon Sep 1 08:00:59 UTC 2014


Module:    rtems
Branch:    master
Commit:    979d95e470599efda3047f50608341bc4b8debcc
Changeset: http://git.rtems.org/rtems/commit/?id=979d95e470599efda3047f50608341bc4b8debcc

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Sep  1 10:08:12 2014 +0200

libtests/capture01: Force error if SMP enabled

This prevents infinite test runs on SMP due to the recursive interrupt
lock acquire.

---

 testsuites/libtests/capture01/init.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/testsuites/libtests/capture01/init.c b/testsuites/libtests/capture01/init.c
index fc06597..5921181 100644
--- a/testsuites/libtests/capture01/init.c
+++ b/testsuites/libtests/capture01/init.c
@@ -212,6 +212,11 @@ rtems_task Init(
 
   rtems_test_begin();
 
+#ifdef RTEMS_SMP
+  printf("Capture Engine is broken due to recursive interrupt lock usage\n");
+  assert(0);
+#endif
+
   rtems_task_set_priority(RTEMS_SELF, 20, &old_priority);
   rtems_task_mode(RTEMS_PREEMPT,  RTEMS_PREEMPT_MASK, &old_mode);
 



More information about the vc mailing list