File: dtc-fatal.sh

package info (click to toggle)
device-tree-compiler 1.7.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,116 kB
  • sloc: ansic: 13,916; sh: 1,200; asm: 713; lex: 522; python: 507; yacc: 499; makefile: 313; perl: 74
file content (15 lines) | stat: -rwxr-xr-x 284 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/sh

SRCDIR=`dirname "$0"`
. "$SRCDIR/testutils.sh"

verbose_run $VALGRIND "$DTC" -o/dev/null "$@"
ret="$?"

if [ "$ret" -gt 127 ]; then
    FAIL "dtc killed by signal (ret=$ret)"
elif [ "$ret" != "1" ]; then
    FAIL "dtc returned incorrect status $ret instead of 1"
fi

PASS