xref: /aosp_15_r20/external/dtc/tests/dtc-fatal.sh (revision cd60bc56d4bea3af4ec04523e4d71c2b272c8aff)
1#! /bin/sh
2
3SRCDIR=`dirname "$0"`
4. "$SRCDIR/testutils.sh"
5
6verbose_run $VALGRIND "$DTC" -o/dev/null "$@"
7ret="$?"
8
9if [ "$ret" -gt 127 ]; then
10    FAIL "dtc killed by signal (ret=$ret)"
11elif [ "$ret" != "1" ]; then
12    FAIL "dtc returned incorrect status $ret instead of 1"
13fi
14
15PASS
16