Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libarchive Skip this test on machines where it wou...
details: https://anonhg.NetBSD.org/src/rev/9e511887ae0e
branches: trunk
changeset: 934015:9e511887ae0e
user: martin <martin%NetBSD.org@localhost>
date: Wed Jun 03 18:07:26 2020 +0000
description:
Skip this test on machines where it would cause serious swapping.
diffstat:
tests/lib/libarchive/t_libarchive.sh | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r 1974ae9dee0f -r 9e511887ae0e tests/lib/libarchive/t_libarchive.sh
--- a/tests/lib/libarchive/t_libarchive.sh Wed Jun 03 18:02:03 2020 +0000
+++ b/tests/lib/libarchive/t_libarchive.sh Wed Jun 03 18:07:26 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_libarchive.sh,v 1.3 2020/03/12 12:57:45 martin Exp $
+# $NetBSD: t_libarchive.sh,v 1.4 2020/06/03 18:07:26 martin Exp $
#
# Copyright (c) 2020 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -35,6 +35,10 @@
libarchive_body()
{
+ local m=$(( $( sysctl -n hw.usermem64 ) / 1024 / 1024 ))
+ if [ $m -lt 400 ]; then
+ atf_skip "too few RAM"
+ 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