allwinner_a64/android/external/dtc/tests/dtc-fatal.sh
2018-08-08 16:14:42 +08:00

14 lines
250 B
Bash

#! /bin/sh
. ./tests.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