Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/net/if_wg The wg_handshake_timeout test case was faili...



details:   https://anonhg.NetBSD.org/src/rev/1d0317a10d18
branches:  trunk
changeset: 1026503:1d0317a10d18
user:      gson <gson%NetBSD.org@localhost>
date:      Fri Nov 26 20:02:35 2021 +0000

description:
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.

diffstat:

 tests/net/if_wg/t_misc.sh |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r dab78edb6510 -r 1d0317a10d18 tests/net/if_wg/t_misc.sh
--- a/tests/net/if_wg/t_misc.sh Fri Nov 26 19:39:58 2021 +0000
+++ b/tests/net/if_wg/t_misc.sh Fri Nov 26 20:02:35 2021 +0000
@@ -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@localhost>
 # All rights reserved.
@@ -198,6 +198,8 @@
 
        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
 



Home | Main Index | Thread Index | Old Index