Source-Changes-HG archive

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

[src/trunk]: src/tests/rump/rumpkern On systems that have only 32M of memory, ...



details:   https://anonhg.NetBSD.org/src/rev/10f442c7a80b
branches:  trunk
changeset: 331900:10f442c7a80b
user:      gson <gson%NetBSD.org@localhost>
date:      Sat Aug 30 12:14:17 2014 +0000

description:
On systems that have only 32M of memory, the stress_short and
stress_long tests thrash a lot, and the stress_long test sometimes
times out, so skip them if we don't have at least 64M.

diffstat:

 tests/rump/rumpkern/t_sp.sh |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r c65e27710266 -r 10f442c7a80b tests/rump/rumpkern/t_sp.sh
--- a/tests/rump/rumpkern/t_sp.sh       Sat Aug 30 09:35:10 2014 +0000
+++ b/tests/rump/rumpkern/t_sp.sh       Sat Aug 30 12:14:17 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_sp.sh,v 1.11 2011/02/24 08:40:06 pooka Exp $
+#      $NetBSD: t_sp.sh,v 1.12 2014/08/30 12:14:17 gson Exp $
 #
 # Copyright (c) 2010 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -58,6 +58,16 @@
        atf_check -s exit:0 $(atf_get_srcdir)/h_client/h_simplecli
 }
 
+stress_short_head()
+{
+       atf_set "require.memory" "64M"
+}
+
+stress_long_head()
+{
+       atf_set "require.memory" "64M"
+}
+
 stress()
 {
 



Home | Main Index | Thread Index | Old Index