Changeset cb1b4060 in rtems


Ignore:
Timestamp:
Jan 5, 2009, 7:48:15 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
a26d515
Parents:
786330c0
Message:

2009-01-05 Joel Sherrill <joel.sherrill@…>

  • psim-shared: Add catching a hardware exception and assertion as reasons to kill simulator.
Location:
c/src/lib/libbsp/powerpc/psim/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/psim/tools/ChangeLog

    r786330c0 rcb1b4060  
     12009-01-05      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * psim-shared: Add catching a hardware exception and assertion as
     4        reasons to kill simulator.
     5
    162008-12-05      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • c/src/lib/libbsp/powerpc/psim/tools/psim-shared

    r786330c0 rcb1b4060  
    1919  else
    2020    case ${1} in
    21       *mp*)
     21      *node*)
    2222        enable_sysv_devices="yes"
    2323        case ${1} in
     
    8989    ${RUN} -f ${treefile} ${RUN_DEBUG} ${testname}
    9090  else
     91    log=`echo ${testname} | sed -e 's/.exe$/.log/' -e 's/.ralf$/.log/'`
    9192    #echo run ${testname} for maximum ${max_run_time} seconds
    92     ${RUN} -f ${treefile} ${RUN_DEBUG} ${testname} &
     93    ${RUN} -f ${treefile} ${RUN_DEBUG} ${testname} >${log} 2>&1 &
    9394    pid=$!
    9495
     
    9798    while [ $time_run -lt $max_run_time ]
    9899    do
    99       # sleep 5s at a time waiting for job to finish or timer to expire
     100      # sleep 1s at a time waiting for job to finish or timer to expire
    100101      # if job has exited, then we exit, too.
    101102      sleep 1
     
    109110          echo "${testname} killed after running ${max_run_time} seconds"
    110111        fi
     112        grep "Suspending faulting task" ${log} >/dev/null 2>&1
     113        Fault=$?
     114        grep "assertion failed" ${log} >/dev/null 2>&1
     115        Assert=$?
     116        if [ $Fault -eq 0 -o $Assert -eq 0 ] ; then
     117          kill -9 $pid 2> /dev/null
     118          echo "${testname} failed after ${max_run_time} seconds"
     119          ran_too_long="no"
     120          break
     121        fi
    111122      else
    112123        ran_too_long="no"
     
    114125      fi
    115126    done
     127    cat ${log}
     128    rm -f ${log}
    116129  fi
     130
    117131}
    118132
Note: See TracChangeset for help on using the changeset viewer.