Changeset c560ef1 in rtems


Ignore:
Timestamp:
Jul 31, 2008, 7:20:24 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
22cee0a4
Parents:
e483dc3
Message:

2008-07-31 Joel Sherrill <joel.sherrill@…>

  • runtest.in: Make attempt to detect memory exceptions and abort running tests.
Location:
c/src/lib/libbsp/sparc/erc32/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/erc32/tools/ChangeLog

    re483dc3 rc560ef1  
     12008-07-31      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * runtest.in: Make attempt to detect memory exceptions and abort
     4        running tests.
     5
    162008-03-11      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • c/src/lib/libbsp/sparc/erc32/tools/runtest.in

    re483dc3 rc560ef1  
    6767# defaults for getopt vars
    6868#
    69 # max_run_time is defaulted to 5 minutes
     69# max_run_time is defaulted to 3 minutes
    7070#
    7171
     
    7777logdir=log
    7878update_on_tick="no"
    79 max_run_time=$((10 * 60))
     79max_run_time=$((3 * 60))
    8080using_print_buffer="yes"
    8181
     
    212212       while [ $time_run -lt $max_run_time ]
    213213       do
    214            # sleep 10s at a time waiting for job to finish or timer to expire
     214           # sleep 1s at a time waiting for job to finish or timer to expire
    215215           # if job has exited, then we exit, too.
    216            sleep 10
     216           sleep 1
    217217           if kill -0 $sim_pid 2>/dev/null
    218218           then
    219                 time_run=$((time_run + 10))
     219                grep "Memory exception " ${logfile}.tmp >/dev/null
     220                if [ $? -eq 0 ] ; then
     221                  break
     222                fi
     223
     224                time_run=$((time_run + 1))
    220225           else
    221226                exit 0
Note: See TracChangeset for help on using the changeset viewer.