From: Stefano Lattarini Date: Thu, 28 Jun 2012 09:09:05 +0000 (+0200) Subject: coverage: enhance tests in 'missing' script a little X-Git-Tag: v1.12b~105 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70b71392807b18e57217e9ed7975965866ae88bc;p=thirdparty%2Fautomake.git coverage: enhance tests in 'missing' script a little * t/am-missing-prog.sh: Here, by also verifying its expected exit status. Signed-off-by: Stefano Lattarini --- diff --git a/t/am-missing-prog.sh b/t/am-missing-prog.sh index a3e0caccb..00d8e373a 100755 --- a/t/am-missing-prog.sh +++ b/t/am-missing-prog.sh @@ -51,13 +51,11 @@ o = $@-stdout e = $@-stderr debug_info = grep . $@-stdout $@-stderr -status_is = $(debug_info); echo $@: st=$$st; : test $$st -eq +status_is = $(debug_info); echo $@: st=$$st; test $$st -eq w_mis = 'am-none-none' is needed, and is missing on your system w_old = 'am-exit-63' is needed, and is probably too old -# FIXME: make this test stricter w.r.t. the exit statuses once -# FIXME: we are merged to master! test1: st=0; $(NO_SUCH_COMMAND) >$o 2>$e || st=$$?; $(status_is) 127 grep "^WARNING: $(w_mis)" $e