Changeset d64a924 in rtems-testing


Ignore:
Timestamp:
Apr 2, 2009, 7:34:01 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
1889db9
Parents:
c8d5e06
Message:

2009-04-02 Joel Sherrill <joel.sherrill@…>

  • gdb-sim-run.in, gdb-sim.in: Add check_status.
Location:
sim-scripts
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sim-scripts/ChangeLog

    rc8d5e06 rd64a924  
     12009-04-02      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * gdb-sim-run.in, gdb-sim.in: Add check_status.
     4
    152009-04-01      Joel Sherrill <joel.sherrill@OARcorp.com>
    26
  • sim-scripts/gdb-sim-run.in

    rc8d5e06 rd64a924  
    5353    [ "$1" ] && prerr $*
    5454}
     55
     56check_status()
     57{
     58  if [ $1 -ne 0 ] ; then
     59    shift
     60    echo "FAILED: " "$*" >&2
     61    exit 1
     62  fi
     63}
     64
    5565
    5666#
  • sim-scripts/gdb-sim.in

    rc8d5e06 rd64a924  
    5959warn() {
    6060    [ "$1" ] && prerr $*
     61}
     62
     63check_status()
     64{
     65  if [ $1 -ne 0 ] ; then
     66    shift
     67    echo "FAILED: " "$*" >&2
     68    test_exit 1
     69  fi
    6170}
    6271
Note: See TracChangeset for help on using the changeset viewer.