]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: fix buglet in t/missing3.sh
authorStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 23 Jul 2012 11:15:13 +0000 (13:15 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 23 Jul 2012 11:15:13 +0000 (13:15 +0200)
* t/missing3.sh: Be sure to use 'run_cmd' also in the first invocation
of 'missing', to ensure the stderr will actually be saved in a file we
can later grep.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
t/missing3.sh

index 3a9ba013fb712f62cdb3ff2cc1713959545b7482..27dcd121cce2525fce0a6dffad36312e29a94a0d 100755 (executable)
@@ -31,7 +31,7 @@ run_cmd ()
   return $st
 }
 
-./missing b7cb8259 --version && exit 1
+run_cmd ./missing b7cb8259 --version && exit 1
 grep WARNING stderr && exit 1
 run_cmd ./missing b7cb8259 --grep && exit 1
 grep 'WARNING:.*missing on your system' stderr