This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

V3 PATCH: set limits in DejaGnu-based framework



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
  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]