This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
V3 PATCH: set limits in DejaGnu-based framework
- To: gcc-patches at gcc dot gnu dot org
- Subject: V3 PATCH: set limits in DejaGnu-based framework
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- Date: 01 May 2001 17:10:45 +0200
- Cc: libstdc++ at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
This patchlet tell the DejaGnu-based framework to set ulimits.
Special thanks to Rob Savoye.
Bootstrapped and tested on i686-pc-linux.
Zack, does this solve your problem?
-- Gaby
2001-05-01 Gabriel Dos Reis <gdr@codesourcery.com>
* testsuite/libstdc++.tests/tests.exp: Set ulimits.
Index: testsuite/libstdc++.tests/tests.exp
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/testsuite/libstdc++.tests/tests.exp,v
retrieving revision 1.2
diff -p -r1.2 tests.exp
*** tests.exp 2001/03/30 08:14:15 1.2
--- tests.exp 2001/05/01 14:59:39
***************
*** 21,27 ****
--- 21,37 ----
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