From 70b71392807b18e57217e9ed7975965866ae88bc Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Thu, 28 Jun 2012 11:09:05 +0200 Subject: [PATCH] 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 --- t/am-missing-prog.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 -- 2.47.2