+2001-02-02 Phil Edwards <pme@sources.redhat.com>
+
+ * mkcheck.in: Also limit virtual memory size, for mmap-based mallocs.
+
2001-02-01 Alexandre Oliva <aoliva@redhat.com>
* configure.in (toplevel_srcdir, auxdir): Set.
# the names of the specific test files to be run
TESTS_FILE="$TEST_DIR/$(date +%Y%m%d)-mkcheckfiles.txt"
-# the heap size limit for testsuite binaries; start with a 2MB limit as per
-# http://gcc.gnu.org/ml/libstdc++/2000-10/msg00029.html
-MAX_MEM_USAGE=3072
+# the heap size and virtual mem limit for testsuite binaries
+# See http://gcc.gnu.org/ml/libstdc++/2000-10/msg00029.html
+MAX_MEM_USAGE=16384
#
# 2: clean, make files, append general test info
# printed by the executable will be lost and cannot be redirected,
# because we need to capture the output of 'time'. Bummer.
TIMEFORMAT='timemark %R'
- E_TIME_TEXT="$(exec 2>&1; ulimit -d $MAX_MEM_USAGE; \
+ E_TIME_TEXT="$(exec 2>&1; \
+ ulimit -d $MAX_MEM_USAGE; ulimit -v $MAX_MEM_USAGE; \
time $LTEXE $EXENAME)"
E_ABNORMAL_TERMINATION=$?
E_TIME="$(echo $E_TIME_TEXT | awk '{print $2}')"