From: Christian Grothoff Date: Tue, 31 Aug 2010 12:16:45 +0000 (+0000) Subject: demo test X-Git-Tag: initial-import-from-subversion-38251~20504 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bcc504591e3e13f550e0e5c6692ab2fc8826ab22;p=oweals%2Fgnunet.git demo test --- diff --git a/src/monkey/test_monkey_npe.sh b/src/monkey/test_monkey_npe.sh new file mode 100755 index 000000000..ef611f8fb --- /dev/null +++ b/src/monkey/test_monkey_npe.sh @@ -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