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

(cherry picked from commit 0f19351efd103bf3bae5d005fadab4b6843055a4)

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

index 207d797af0e7179ce2421607c8aad1bfdb4ace1d..31e1a99ce8d2043beacca472600a3d378e600eb3 100644 (file)
@@ -484,7 +484,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;