Module Name:    src
Committed By:   jruoho
Date:           Fri Jul  3 07:03:14 UTC 2020

Modified Files:
        src/tests/sbin/ifconfig: t_random_garbage.sh
        src/tests/sbin/sysctl: t_random_garbage.sh

Log Message:
Skip these also for Qemu runs as they cause panics. Point to PR kern/55451.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/sbin/ifconfig/t_random_garbage.sh
cvs rdiff -u -r1.2 -r1.3 src/tests/sbin/sysctl/t_random_garbage.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/sbin/ifconfig/t_random_garbage.sh
diff -u src/tests/sbin/ifconfig/t_random_garbage.sh:1.2 src/tests/sbin/ifconfig/t_random_garbage.sh:1.3
--- src/tests/sbin/ifconfig/t_random_garbage.sh:1.2	Sat Jun 27 14:04:17 2020
+++ src/tests/sbin/ifconfig/t_random_garbage.sh	Fri Jul  3 07:03:14 2020
@@ -1,4 +1,4 @@
-# $NetBSD: t_random_garbage.sh,v 1.2 2020/06/27 14:04:17 jruoho Exp $
+# $NetBSD: t_random_garbage.sh,v 1.3 2020/07/03 07:03:14 jruoho Exp $
 #
 # Copyright (c) 2020 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -47,7 +47,8 @@ write_garbage() {
 atf_test_case random_garbage
 random_garbage_head() {
 	atf_set "require.user" "root"
-	atf_set "descr" "Test writing random garbage to ifconfig(8) options"
+	atf_set "descr" "Test writing random garbage to " \
+		"ifconfig(8) options (PR kern/55451)"
 }
 
 random_garbage_body() {
@@ -62,7 +63,7 @@ random_garbage_body() {
 	#
 	# Take care.
 	#
-	atf_skip "The test is not safe"
+	atf_skip "The test is not safe (PR kern/55451)"
 
 	opts="advbase advskew broadcast carpdev description \
 	      media mediaopt -mediaopt mode instance metric mtu \

Index: src/tests/sbin/sysctl/t_random_garbage.sh
diff -u src/tests/sbin/sysctl/t_random_garbage.sh:1.2 src/tests/sbin/sysctl/t_random_garbage.sh:1.3
--- src/tests/sbin/sysctl/t_random_garbage.sh:1.2	Tue Jun 30 11:49:26 2020
+++ src/tests/sbin/sysctl/t_random_garbage.sh	Fri Jul  3 07:03:14 2020
@@ -1,4 +1,4 @@
-# $NetBSD: t_random_garbage.sh,v 1.2 2020/06/30 11:49:26 jruoho Exp $
+# $NetBSD: t_random_garbage.sh,v 1.3 2020/07/03 07:03:14 jruoho Exp $
 #
 # Copyright (c) 2020 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -41,16 +41,13 @@ atf_test_case random_garbage cleanup
 random_garbage_head() {
 	sysctl -a > $tmp
 	atf_set "require.user" "root"
-	atf_set "descr" "Test writing random garbage to sysctl nodes"
+	atf_set "descr" "Test writing random garbage " \
+		"to sysctl nodes (PR kern/55451)"
 }
 
 random_garbage_body() {
 
-	sysctl machdep.cpu_brand 2>/dev/null | grep "QEMU"
-
-	if [ $? -eq 1 ]; then
-		atf_skip "The test is not safe"
-	fi
+	atf_skip "The test is not safe (PR kern/55451)"
 
 	while read line; do
 
@@ -90,11 +87,7 @@ random_garbage_body() {
 
 random_garbage_cleanup() {
 
-	sysctl machdep.cpu_brand 2>/dev/null | grep "QEMU"
-
-	if [ $? -eq 1 ]; then
-		atf_skip "The test is not safe"
-	fi
+	atf_skip "The test is not safe (PR kern/55451)"
 
 	while read line; do
 		var=$(echo $line | awk '{print $1}')

Reply via email to