Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libarchive PR kern/55272: skip this test on unipro...
details: https://anonhg.NetBSD.org/src/rev/fc7f4cc82a7c
branches: trunk
changeset: 973027:fc7f4cc82a7c
user: martin <martin%NetBSD.org@localhost>
date: Tue Jun 16 07:59:07 2020 +0000
description:
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
diffstat:
tests/lib/libarchive/t_libarchive.sh | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r da9e8f786674 -r fc7f4cc82a7c tests/lib/libarchive/t_libarchive.sh
--- a/tests/lib/libarchive/t_libarchive.sh Tue Jun 16 06:42:36 2020 +0000
+++ b/tests/lib/libarchive/t_libarchive.sh Tue Jun 16 07:59:07 2020 +0000
@@ -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 @@
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"
Home |
Main Index |
Thread Index |
Old Index