aboutsummaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-05-16 14:02:18 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-05-18 11:34:42 +0200
commit0ee915a4b77193b4191d2d6d0193ead51638ed67 (patch)
tree143123ddd1a80cc22080757cb50cdb6d9ea55927 /sys
parent67206203d3b932828bbcb68b5779a2bdc05158dd (diff)
pkg/runtest: disable broken test combinations
Amusingly this was always broken but nobody was ever able to compile 32-bit binaries on Linux since the addition of the tests.
Diffstat (limited to 'sys')
-rw-r--r--sys/test/test/align03
-rw-r--r--sys/test/test/bf3
-rw-r--r--sys/test/test/bf23
3 files changed, 8 insertions, 1 deletions
diff --git a/sys/test/test/align0 b/sys/test/test/align0
index 426b6e2de..a73ca98a5 100644
--- a/sys/test/test/align0
+++ b/sys/test/test/align0
@@ -1,3 +1,6 @@
+# 32_shmem has 4-byte alignment for int64 and everything goes havoc.
+# requires: -arch=32_shmem
+
syz_compare(&AUTO="010000000200000003000400000000000500000000000000", 0x18, &AUTO=@align0={0x1, 0x2, 0x3, 0x4, 0x5}, AUTO)
syz_compare(&AUTO="", 0x18, &AUTO=@align0={0x0, 0x0, 0x0, 0x0, 0x0}, 0x17) # EBADF
syz_compare(&AUTO="", 0x18, &AUTO=@align0={0x1, 0x0, 0x0, 0x0, 0x0}, AUTO) # EINVAL
diff --git a/sys/test/test/bf b/sys/test/test/bf
index 6527e5ff2..b1a251e66 100644
--- a/sys/test/test/bf
+++ b/sys/test/test/bf
@@ -1,3 +1,6 @@
+# 32_shmem has 4-byte alignment for int64 and everything goes havoc.
+# requires: -arch=32_shmem
+
syz_compare(&AUTO="ab03000000000000cdcdcdcdcdcdcdcdebffff03ab0303abaa00000000000000", 0x20, &AUTO=@bf0={0xabab, 0xcdcdcdcdcdcdcdcd, 0xabab, 0xffff, 0xffffff, 0xabab, 0xabab, 0xaaa}, AUTO)
syz_compare(&AUTO="dcfcde563422f10e", 0x8, &AUTO=@bf2={0x0abc, 0x0bcd, 0xcdef, 0x123456, 0x78ef12}, AUTO)
syz_compare(&AUTO="0ef1223456defcdc", 0x8, &AUTO=@bf3={0x0abc, 0x0bcd, 0xcdef, 0x123456, 0x78ef12}, AUTO)
diff --git a/sys/test/test/bf2 b/sys/test/test/bf2
index 5d15a10f1..1f5f71877 100644
--- a/sys/test/test/bf2
+++ b/sys/test/test/bf2
@@ -1,4 +1,5 @@
-# TODO: all these results are wrong, correct answers are:
+# 32_shmem has 4-byte alignment for int64 and everything goes havoc.
+# requires: -arch=32_shmem
syz_compare(&AUTO="1200000034067800", AUTO, &AUTO=@bf4={0x12, {0x34, 0x56, 0x78}}, AUTO)
syz_compare(&AUTO="1200000034060000", AUTO, &AUTO=@bf5={0x12, {0x34, 0x56}}, AUTO)