Module Name:    src
Committed By:   martin
Date:           Tue Jun 16 07:59:07 UTC 2020

Modified Files:
        src/tests/lib/libarchive: t_libarchive.sh

Log Message:
PR kern/55272: skip this test on uniprocessor machines, it is too dangerous
and can kill the host kernel if a userland watchdog is running


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libarchive/t_libarchive.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/lib/libarchive/t_libarchive.sh
diff -u src/tests/lib/libarchive/t_libarchive.sh:1.4 src/tests/lib/libarchive/t_libarchive.sh:1.5
--- src/tests/lib/libarchive/t_libarchive.sh:1.4	Wed Jun  3 18:07:26 2020
+++ src/tests/lib/libarchive/t_libarchive.sh	Tue Jun 16 07:59:07 2020
@@ -1,4 +1,4 @@
-#       $NetBSD: t_libarchive.sh,v 1.4 2020/06/03 18:07:26 martin Exp $
+#       $NetBSD: t_libarchive.sh,v 1.5 2020/06/16 07:59:07 martin Exp $
 #
 # Copyright (c) 2020 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -39,6 +39,10 @@ libarchive_body()
 	if [ $m -lt 400 ]; then
 		atf_skip "too few RAM"
 	fi
+	local ncpu=$( sysctl -n hw.ncpuonline )
+	if [ $ncpu -lt 2 ]; then
+		atf_skip "PR kern/55272: too dangerous to run this test"
+	fi
 	local d=$(atf_get_srcdir)
 	atf_check -s exit:0 -o 'not-match:^Details for failing tests:.*' \
 	    "$d/h_libarchive" -r "$d"

Reply via email to