libnet: Fix Coverity ID 1634803 Dereference after null check
[samba4-gss.git] / source3 / script / tests / full_audit_segfault / run.sh
bloba2ba43f372ef5222cc9002366a0c26610abdcf71
1 #!/bin/sh
2 if [ $# -lt 1 ]; then
3 cat <<EOF
4 Usage: run.sh VFSTEST
5 EOF
6 exit 1
7 fi
9 TALLOC_FILL_FREE=0
10 export TALLOC_FILL_FREE
12 TESTBASE="$(dirname $0)"
13 VFSTEST="$VALGRIND $1"
14 shift 1
15 ADDARGS="$*"
17 incdir=$(dirname $0)/../../../../testprogs/blackbox
18 . $incdir/subunit.sh
20 failed=0
22 testit "vfstest" "$VFSTEST" -f "$TESTBASE/vfstest.cmd" "$ADDARGS" ||
23 failed=$(expr $failed + 1)
25 exit $failed