tests/files tests/fairland: Check stderr and exit status

New helper run_and_cmp to automate the job: run a program capturing
its standard output, standard error and exit status, then compare the
actual with the expected results.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2014-01-29 20:12:18 +01:00
parent e633597854
commit fed6620a0b
4 changed files with 45 additions and 16 deletions

View file

@ -11,12 +11,7 @@ srcdir="$1"
create_sandbox
exec 3>sandbox/files.out
$files -f >&3
exec 3>&-
run_and_cmp files $files -f
$empdump -x >sandbox/final.xdump
cmp_out files.out final.xdump
cmp_out final.xdump