]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Don't try to run the DLT_RAW test on OpenBSD.
authorDenis Ovsienko <[email protected]>
Wed, 17 Mar 2021 11:49:51 +0000 (11:49 +0000)
committerDenis Ovsienko <[email protected]>
Wed, 17 Mar 2021 11:55:17 +0000 (11:55 +0000)
With this change tcpdump passes "make check" on OpenBSD 6.8 AMD64.

tests/TESTLIST
tests/non-bsd.tests [new file with mode: 0644]

index 3aee9e408dfed9f596ff761ac3ddd757fc6a091a..252838c4897869add949d18dc71d9a47bffef0e9 100644 (file)
@@ -508,7 +508,7 @@ bfd-raw-auth-sha1 bfd-raw-auth-sha1.pcap bfd-raw-auth-sha1.out
 bfd-raw-auth-sha1-v bfd-raw-auth-sha1.pcap bfd-raw-auth-sha1-v.out -v
 
 # bad packets from Hanno Böck
-heap-overflow-1        heap-overflow-1.pcap            heap-overflow-1.out     -v
+# heap-overflow-1 is in non-bsd.tests
 heap-overflow-2        heap-overflow-2.pcap            heap-overflow-2.out     -v
 heapoverflow-atalk_print       heapoverflow-atalk_print.pcap   heapoverflow-atalk_print.out    -v
 heapoverflow-EXTRACT_16BITS    heapoverflow-EXTRACT_16BITS.pcap        heapoverflow-EXTRACT_16BITS.out -v
diff --git a/tests/non-bsd.tests b/tests/non-bsd.tests
new file mode 100644 (file)
index 0000000..e18bace
--- /dev/null
@@ -0,0 +1,15 @@
+# -*- perl -*-
+
+$testlist = [
+    # This specific test fails on OpenBSD because the .pcap file uses DLT_RAW,
+    # which OpenBSD treats as DLT_LOOP. The macro is set on all three BSDs.
+    {
+        config_unset => 'HAVE_NET_IF_PFLOG_H',
+        name => 'heap-overflow-1',
+        input => 'heap-overflow-1.pcap',
+        output => 'heap-overflow-1.out',
+        args   => '-v'
+    },
+];
+
+1;