demo test
authorChristian Grothoff <christian@grothoff.org>
Tue, 31 Aug 2010 12:16:45 +0000 (12:16 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 31 Aug 2010 12:16:45 +0000 (12:16 +0000)
src/monkey/test_monkey_npe.sh [new file with mode: 0755]

diff --git a/src/monkey/test_monkey_npe.sh b/src/monkey/test_monkey_npe.sh
new file mode 100755 (executable)
index 0000000..ef611f8
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+./gnunet-monkey --output=npe.out ./bug_null_pointer_exception && exit 1
+grep "null pointer exception on line bug_null_pointer_exception.c:12" npe.out  > /dev/null || exit 2
+grep "expression \`nullString\' is NULL" npe.out  > /dev/null || exit 2
+rm -f npe.out