aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/wireguard/qemu/arch/m68k.config
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2022-07-07 02:31:52 +0200
committerJakub Kicinski <kuba@kernel.org>2022-07-06 20:04:05 -0700
commit829be057dbc1e71383b8d7de8edb31dcf07b4aa0 (patch)
tree19662199b7474b9d028205189be005bf26979813 /tools/testing/selftests/wireguard/qemu/arch/m68k.config
parentr8169: fix accessing unset transport header (diff)
downloadlinux-dev-829be057dbc1e71383b8d7de8edb31dcf07b4aa0.tar.xz
linux-dev-829be057dbc1e71383b8d7de8edb31dcf07b4aa0.zip
wireguard: selftests: set fake real time in init
Not all platforms have an RTC, and rather than trying to force one into each, it's much easier to just set a fixed time. This is necessary because WireGuard's latest handshakes parameter is returned in wallclock time, and if the system time isn't set, and the system is really fast, then this returns 0, which trips the test. Turning this on requires setting CONFIG_COMPAT_32BIT_TIME=y, as musl doesn't support settimeofday without it. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to '')
-rw-r--r--tools/testing/selftests/wireguard/qemu/arch/m68k.config1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/wireguard/qemu/arch/m68k.config b/tools/testing/selftests/wireguard/qemu/arch/m68k.config
index 82c925e49beb..9639bfe06074 100644
--- a/tools/testing/selftests/wireguard/qemu/arch/m68k.config
+++ b/tools/testing/selftests/wireguard/qemu/arch/m68k.config
@@ -5,5 +5,6 @@ CONFIG_MAC=y
CONFIG_SERIAL_PMACZILOG=y
CONFIG_SERIAL_PMACZILOG_TTYS=y
CONFIG_SERIAL_PMACZILOG_CONSOLE=y
+CONFIG_COMPAT_32BIT_TIME=y
CONFIG_CMDLINE="console=ttyS0 wg.success=ttyS1 panic_on_warn=1"
CONFIG_FRAME_WARN=1024