summaryrefslogtreecommitdiffstats
path: root/regress/sys
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2020-12-27 14:37:54 +0000
committerbluhm <bluhm@openbsd.org>2020-12-27 14:37:54 +0000
commit7cecf4914770e9e97838bc41827e8392ddcde768 (patch)
treead49e080ff1b3dbf49fcc3bbc794089c3bd6b2cd /regress/sys
parentMake NET_LOCK() assertions conditional to DIAGNOSTIC (diff)
downloadwireguard-openbsd-7cecf4914770e9e97838bc41827e8392ddcde768.tar.xz
wireguard-openbsd-7cecf4914770e9e97838bc41827e8392ddcde768.zip
Ensure that a sufficient part of the remote log file has been
transferred before the local side greps for the spliced keyword. Fixes a race seen on the arm64 regress machine.
Diffstat (limited to 'regress/sys')
-rw-r--r--regress/sys/kern/sosplice/scapy/scapy.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/regress/sys/kern/sosplice/scapy/scapy.pl b/regress/sys/kern/sosplice/scapy/scapy.pl
index a4e010a9e9b..f6844bef202 100644
--- a/regress/sys/kern/sosplice/scapy/scapy.pl
+++ b/regress/sys/kern/sosplice/scapy/scapy.pl
@@ -1,5 +1,5 @@
#!/usr/bin/perl
-# $OpenBSD: scapy.pl,v 1.3 2020/12/26 00:12:03 bluhm Exp $
+# $OpenBSD: scapy.pl,v 1.4 2020/12/27 14:37:54 bluhm Exp $
# Copyright (c) 2010-2017 Alexander Bluhm <bluhm@openbsd.org>
#
@@ -87,6 +87,8 @@ if ($mode eq "relay") {
copy($log, \*STDERR);
$r->up;
copy($log, \*STDERR);
+ $r->loggrep(qr/^Spliced$/);
+ copy($log, \*STDERR);
$r->down;
copy($log, \*STDERR);