* testsuite/libstdc++.tests/tests.exp: Set ulimits.
authorGabriel Dos Reis <gdr@codesourcery.com>
Tue, 1 May 2001 15:01:50 +0000 (15:01 +0000)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Tue, 1 May 2001 15:01:50 +0000 (15:01 +0000)
From-SVN: r41727

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/libstdc++.tests/tests.exp

index b0646a9e51beb748b57f7072a2ba95ab828953a8..8350051e1d0ccc5d445315abc1e06103f0a15c35 100644 (file)
@@ -1,3 +1,7 @@
+2001-05-01  Gabriel Dos Reis  <gdr@codesourcery.com>
+
+       * testsuite/libstdc++.tests/tests.exp: Set ulimits.
+
 2001-04-30  Mark Mitchell  <mark@codesourcery.com>
 
        * porting.texi: Use the GFDL.
index 6077c12bc873ec86f7935a35b618e07ceb3654ab..c3a66f5dae3e0a74260bf027742dbd3c7a073450 100644 (file)
 
 load_lib libstdc++.exp
 
+## Initialize the framework.
 libstdc++-dg-init
+
+## Set ulimits.  This should normally be handled on test-by-test
+## basis through @xxx@-keywords.
+set maximum-memory-usage 16384
+set shell-ulimit-command ulimit
+remote_exec host ${shell-ulimit-command} "-d ${maximum-memory-usage}"
+remote_exec host ${shell-ulimit-command} "-v ${maximum-memory-usage}"
+
+## Now, do the work directory by directory
 libstdc++_runtest [glob -nocomplain $srcdir/*]
 dg-finish