for w32 port
[oweals/gnunet.git] / src / statistics / test_gnunet_statistics.sh
index f11fc62b1ef1d2fc82c688aad15c88824b6083e9..eb2d618d9ac3c8f354e1d032113b9b56eceffaa1 100755 (executable)
@@ -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"