historical/m0-applesillicon.git/xnu-qemu-arm64-5.1.0/dtc/tests/dtc-fatal.sh

16 lines
284 B
Bash
Raw Normal View History

2024-01-16 17:20:27 +00:00
#! /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