[rtems-testing commit] sis.in: Quit on memory exception

Joel Sherrill joel at rtems.org
Tue Jan 8 19:35:48 UTC 2013


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

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Tue Jan  8 13:29:07 2013 -0600

sis.in: Quit on memory exception

---

 sim-scripts/sis.in |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/sim-scripts/sis.in b/sim-scripts/sis.in
index bc74105..9ae084b 100644
--- a/sim-scripts/sis.in
+++ b/sim-scripts/sis.in
@@ -9,6 +9,12 @@ runARGS()
 
 checkBSPFaults()
 {
+  logfile=$1
+  grep "^Memory exception at " ${logfile}
+  badAccessExit=$?
+  if [ $badAccessExit -eq 0 ] ; then
+    return 1
+  fi
   return 0
 }
 




More information about the vc mailing list