]> The Tcpdump Group git mirrors - tcpdump/blobdiff - tests/nflog-e.sh
(for 4.9.3) CVE-2018-14463/VRRP: Add a missing bounds check
[tcpdump] / tests / nflog-e.sh
index a8a67f0051755129fd6373c5bce3ab3cfe8d8b2e..5b5b66cefdfc3c6ea9172e54cd315e2389c384de 100755 (executable)
@@ -1,10 +1,24 @@
 #!/bin/sh
 
+exitcode=0
+
 # NFLOG support depends on both DLT_NFLOG and working <pcap/nflog.h>
 
 if grep '^#define HAVE_PCAP_NFLOG_H 1$' ../config.h >/dev/null
 then
-  ./TESTonce nflog-e nflog.pcap nflog-e.out '-e'
+       passed=`cat .passed`
+       failed=`cat .failed`
+       if ./TESTonce nflog-e nflog.pcap nflog-e.out '-e'
+       then
+               passed=`expr $passed + 1`
+               echo $passed >.passed
+       else
+               failed=`expr $failed + 1`
+               echo $failed >.failed
+               exitcode=1
+       fi
 else
        printf '    %-35s: TEST SKIPPED (compiled w/o NFLOG)\n' 'nflog-e'
 fi
+
+exit $exitcode