i am a dumb dummy
[oweals/gnunet.git] / src / monkey / test_monkey_npe.sh
1 #!/bin/sh
2 echo -n "Test Monkey with Bug - Null Pointer Exception -"
3 gnunet-monkey --mode text --binary bug_null_pointer_exception --output npe.out && exit 0
4 grep "Bug detected in file:bug_null_pointer_exception.c" npe.out > /dev/null || exit 1
5 grep "function:crashFunction" npe.out > /dev/null || exit 1
6 grep "line:8" npe.out > /dev/null || exit 1
7 grep "reason:Signal received" npe.out > /dev/null || exit 1
8 grep "received signal:EXC_BAD_ACCESS" npe.out > /dev/null || exit 1
9 grep "Could not access memory" npe.out > /dev/null || exit 1
10 rm -f npe.out
11 echo "PASS"