From d5961683763d0e20330a737abb72ef4321a18b38 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 23 Oct 2009 20:28:44 +0000 Subject: [PATCH] check flag --- src/statistics/test_gnunet_statistics.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/statistics/test_gnunet_statistics.sh b/src/statistics/test_gnunet_statistics.sh index f11fc62b1..eb2d618d9 100755 --- a/src/statistics/test_gnunet_statistics.sh +++ b/src/statistics/test_gnunet_statistics.sh @@ -150,6 +150,18 @@ if ! $exe $DEBUG -n lasting -s subsystem 40; then $arm -e exit 1 fi +if ! $exe $DEBUG > $out; then + echo "FAIL: error running $exe" + $arm -e + exit 1 +fi +LINES=`cat $out | grep \! | wc -l` +if test $LINES -ne 0; then + echo "FAIL: unexpected output" + cat $out + $arm -e + exit 1 +fi echo "PASS" -- 2.25.1