Source-Changes-HG archive

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

[src/trunk]: src/tests/sbin Skip these also for Qemu runs as they cause panic...



details:   https://anonhg.NetBSD.org/src/rev/20f03273075a
branches:  trunk
changeset: 973508:20f03273075a
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Fri Jul 03 07:03:14 2020 +0000

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

diffstat:

 tests/sbin/ifconfig/t_random_garbage.sh |   7 ++++---
 tests/sbin/sysctl/t_random_garbage.sh   |  17 +++++------------
 2 files changed, 9 insertions(+), 15 deletions(-)

diffs (70 lines):

diff -r 65d2b7a0927a -r 20f03273075a tests/sbin/ifconfig/t_random_garbage.sh
--- a/tests/sbin/ifconfig/t_random_garbage.sh   Fri Jul 03 06:49:26 2020 +0000
+++ b/tests/sbin/ifconfig/t_random_garbage.sh   Fri Jul 03 07:03:14 2020 +0000
@@ -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 @@
 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 @@
        #
        # 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 \
diff -r 65d2b7a0927a -r 20f03273075a tests/sbin/sysctl/t_random_garbage.sh
--- a/tests/sbin/sysctl/t_random_garbage.sh     Fri Jul 03 06:49:26 2020 +0000
+++ b/tests/sbin/sysctl/t_random_garbage.sh     Fri Jul 03 07:03:14 2020 +0000
@@ -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 @@
 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_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}')



Home | Main Index | Thread Index | Old Index