[rtems-testing commit] jmr3904.in: Add ReservedInstruction as fatal message to detect

Joel Sherrill joel at rtems.org
Mon Apr 21 13:58:29 UTC 2014


Module:    rtems-testing
Branch:    master
Commit:    e997f7abbef9f467b102e9406025bf9ee6c67f24
Changeset: http://git.rtems.org/rtems-testing/commit/?id=e997f7abbef9f467b102e9406025bf9ee6c67f24

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Mon Apr 21 09:06:01 2014 -0500

jmr3904.in: Add ReservedInstruction as fatal message to detect

---

 sim-scripts/jmr3904.in |   48 ++++++++++++++++++++++++++++++++++++++----------
 1 files changed, 38 insertions(+), 10 deletions(-)

diff --git a/sim-scripts/jmr3904.in b/sim-scripts/jmr3904.in
index decc8de..1e520ae 100644
--- a/sim-scripts/jmr3904.in
+++ b/sim-scripts/jmr3904.in
@@ -10,16 +10,43 @@ runARGS()
 checkBSPFaults()
 {
   logfile=$1
+  
+  for err in \
+    "^Unhandled exception" \
+    "^mips-core: " \
+    "Data Bus Error" \
+    "ReservedInstruction at PC =" \
+    "HILO: MFHI: MF"
+  do
+    grep "${err}" ${logfile}
+    if [ $? -eq 0 ]; then
+      return 1
+    fi
+  done
+
+  return 0
+
   grep "^Unhandled exception" ${logfile}
-  exceptionExit=$?
+  if [ $? -eq 0 ]; then
+    return 1
+  fi
+
   grep "^mips-core: " ${logfile}
-  badAccessExit=$?
+  if [ $? -eq 0 ]; then
+    return 1
+  fi
+
   grep "Data Bus Error" ${logfile}
-  dataBusError=$?
-  if [ $badAccessExit -eq 0 -o $exceptionExit -eq 0 -o \
-       $dataBusError -eq 0 ] ; then
+  if [ $? -eq 0 ]; then
     return 1
   fi
+
+  grep "ReservedInstruction at PC =" ${logfile}
+  if [ $? -eq 0 ]; then
+    return 1
+  fi
+
+
   return 0
 }
 
@@ -27,11 +54,12 @@ bspLimit()
 {
   testname=$1
   case ${testname} in
-    *stackchk*)limit=5 ;;
-    *fatal*)   limit=1 ;;
-    *minimum*) limit=1 ;;
-    *psxtime*) limit=180 ;;
-    *)         limit=60 ;;
+    *stackchk*)        limit=5 ;;
+    *fatal*)           limit=1 ;;
+    *minimum*)         limit=1 ;;
+    *psxtime*)         limit=180 ;;
+    *fsdosfsformat01*) limit=90 ;;
+    *)                 limit=60 ;;
   esac
   echo ${limit}
 }




More information about the vc mailing list