forked from Imagelibrary/rtems
2008-07-31 Joel Sherrill <joel.sherrill@OARcorp.com>
* runtest.in: Make attempt to detect memory exceptions and abort running tests.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2008-07-31 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
|
* runtest.in: Make attempt to detect memory exceptions and abort
|
||||||
|
running tests.
|
||||||
|
|
||||||
2008-03-11 Joel Sherrill <joel.sherrill@oarcorp.com>
|
2008-03-11 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||||
|
|
||||||
* runtest.in: Skip all fatal error tests.
|
* runtest.in: Skip all fatal error tests.
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ test_exit()
|
|||||||
#
|
#
|
||||||
# defaults for getopt vars
|
# defaults for getopt vars
|
||||||
#
|
#
|
||||||
# max_run_time is defaulted to 5 minutes
|
# max_run_time is defaulted to 3 minutes
|
||||||
#
|
#
|
||||||
|
|
||||||
verbose=""
|
verbose=""
|
||||||
@@ -76,7 +76,7 @@ stdio_setup="yes"
|
|||||||
run_to_completion="yes"
|
run_to_completion="yes"
|
||||||
logdir=log
|
logdir=log
|
||||||
update_on_tick="no"
|
update_on_tick="no"
|
||||||
max_run_time=$((10 * 60))
|
max_run_time=$((3 * 60))
|
||||||
using_print_buffer="yes"
|
using_print_buffer="yes"
|
||||||
|
|
||||||
while getopts vhr12o:c:sl:t OPT
|
while getopts vhr12o:c:sl:t OPT
|
||||||
@@ -211,12 +211,17 @@ do
|
|||||||
time_run=0
|
time_run=0
|
||||||
while [ $time_run -lt $max_run_time ]
|
while [ $time_run -lt $max_run_time ]
|
||||||
do
|
do
|
||||||
# sleep 10s at a time waiting for job to finish or timer to expire
|
# sleep 1s at a time waiting for job to finish or timer to expire
|
||||||
# if job has exited, then we exit, too.
|
# if job has exited, then we exit, too.
|
||||||
sleep 10
|
sleep 1
|
||||||
if kill -0 $sim_pid 2>/dev/null
|
if kill -0 $sim_pid 2>/dev/null
|
||||||
then
|
then
|
||||||
time_run=$((time_run + 10))
|
grep "Memory exception " ${logfile}.tmp >/dev/null
|
||||||
|
if [ $? -eq 0 ] ; then
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
|
||||||
|
time_run=$((time_run + 1))
|
||||||
else
|
else
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user