The wg_handshake_timeout test case was failing because it contained
atf_fail "failed to trigger PR kern/56252" without a corresponding atf_expect_fail "PR kern/56252", which makes no sense. Since the test case does occasionally fail on real hardware, fix this by adding the atf_expect_fail rather than by removing the atf_fail.
This commit is contained in:
parent
f801d2dc32
commit
0d1c554f2b
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: t_misc.sh,v 1.10 2021/06/17 12:45:58 riastradh Exp $
|
||||
# $NetBSD: t_misc.sh,v 1.11 2021/11/26 20:02:35 gson Exp $
|
||||
#
|
||||
# Copyright (c) 2018 Ryota Ozaki <ozaki.ryota@gmail.com>
|
||||
# All rights reserved.
|
||||
|
@ -198,6 +198,8 @@ wg_handshake_timeout_body()
|
|||
|
||||
n=$(grep "$ip_local.$port > $ip_peer.$port" $outfile |wc -l)
|
||||
|
||||
atf_expect_fail "PR kern/56252"
|
||||
|
||||
# Give up handshaking after three attempts
|
||||
atf_check_equal $n 3
|
||||
|
||||
|
|
Loading…
Reference in New Issue