Browse Source
This patch adds some testcases checking corner cases of dtc's input file handling. Specifically it checks that dtc works correctly when given input via stdin, and it checks that dtc fails gracefully if given a nonexistent input file (or directory, in the case of -Ifs mode). Signed-off-by: David Gibson <david@gibson.dropbear.id.au>main
David Gibson
17 years ago
committed by
Jon Loeliger
2 changed files with 25 additions and 0 deletions
@ -0,0 +1,14 @@
@@ -0,0 +1,14 @@
|
||||
#! /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 |
Loading…
Reference in new issue