From bcc504591e3e13f550e0e5c6692ab2fc8826ab22 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 31 Aug 2010 12:16:45 +0000 Subject: [PATCH] demo test --- src/monkey/test_monkey_npe.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 src/monkey/test_monkey_npe.sh 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 -- 2.25.1