Module Name:    src
Committed By:   riastradh
Date:           Sun Jul 28 14:47:06 UTC 2024

Modified Files:
        src/tests/net/if_wg: t_misc.sh

Log Message:
wg(4): Tests should pass now.

PR kern/55729: net/if_wg/t_misc:wg_rekey test case fails
PR kern/56252: wg(4) state machine has race conditions
PR kern/58463: if_wg does not work when idle.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/tests/net/if_wg/t_misc.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/net/if_wg/t_misc.sh
diff -u src/tests/net/if_wg/t_misc.sh:1.14 src/tests/net/if_wg/t_misc.sh:1.15
--- src/tests/net/if_wg/t_misc.sh:1.14	Sun Jul 28 14:46:44 2024
+++ src/tests/net/if_wg/t_misc.sh	Sun Jul 28 14:47:05 2024
@@ -1,4 +1,4 @@
-#	$NetBSD: t_misc.sh,v 1.14 2024/07/28 14:46:44 riastradh Exp $
+#	$NetBSD: t_misc.sh,v 1.15 2024/07/28 14:47:05 riastradh Exp $
 #
 # Copyright (c) 2018 Ryota Ozaki <[email protected]>
 # All rights reserved.
@@ -86,8 +86,6 @@ wg_rekey_body()
 
 	$ping $ip_wg_peer
 
-	atf_expect_fail "PR kern/56252"
-
 	# No reinitiation is performed
 	atf_check -s exit:0 -o match:"$latest_handshake" \
 	    $HIJACKING wgconfig wg0 show peer peer0
@@ -115,8 +113,6 @@ wg_rekey_body()
 	    $HIJACKING wgconfig wg0 show peer peer0
 
 	destroy_wg_interfaces
-
-	atf_fail "failed to trigger PR kern/56252"
 }
 
 wg_rekey_cleanup()
@@ -197,8 +193,6 @@ 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
 
@@ -207,8 +201,6 @@ wg_handshake_timeout_body()
 	export RUMP_SERVER=$SOCK_LOCAL
 
 	destroy_wg_interfaces
-
-	atf_fail "failed to trigger PR kern/56252"
 }
 
 wg_handshake_timeout_cleanup()
@@ -270,8 +262,6 @@ wg_cookie_body()
 	# and a session doesn't start
 	$ping_fail $ip_wg_peer
 
-	atf_expect_fail "PR kern/56252"
-
 	extract_new_packets $BUS > $outfile
 	$DEBUG && cat $outfile
 	# XXX length 64 indicates the message is a cookie message
@@ -295,8 +285,6 @@ wg_cookie_body()
 	    $HIJACKING wgconfig wg0
 
 	destroy_wg_interfaces
-
-	atf_fail "failed to trigger PR kern/56252"
 }
 
 wg_cookie_cleanup()
@@ -353,8 +341,6 @@ wg_mobility_body()
 	export RUMP_SERVER=$SOCK_LOCAL
 	$ping_fail $ip_wg_peer
 
-	atf_expect_fail "PR kern/56252"
-
 	extract_new_packets $BUS > $outfile
 	$DEBUG && cat $outfile
 
@@ -393,8 +379,6 @@ wg_mobility_body()
 	atf_check -s exit:0 -o not-match:"$ip_local.$port > $ip_peer.$port" cat $outfile
 
 	destroy_wg_interfaces
-
-	atf_fail "failed to trigger PR kern/56252"
 }
 
 wg_mobility_cleanup()

Reply via email to