testsuite_hooks.cc (__gnu_test::set_memory_limits): Do not set RLIMIT_AS on HP-UX.
* testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do not set RLIMIT_AS on HP-UX. From-SVN: r78233
This commit is contained in:
parent
22cc69c4c0
commit
e1efc7a028
|
@ -1,3 +1,8 @@
|
|||
2004-02-21 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
* testsuite/testsuite_hooks.cc (__gnu_test::set_memory_limits): Do
|
||||
not set RLIMIT_AS on HP-UX.
|
||||
|
||||
2004-02-21 Paolo Carlini <pcarlini@suse.de>
|
||||
|
||||
* include/bits/locale_facets.h (class money_base): Add { _S_minus,
|
||||
|
|
|
@ -74,7 +74,10 @@ namespace __gnu_test
|
|||
#endif
|
||||
|
||||
// Virtual memory.
|
||||
#if _GLIBCXX_HAVE_MEMLIMIT_AS
|
||||
// On HP-UX 11.23, a trivial C++ program that sets RLIMIT_AS to
|
||||
// anything less than 128MB cannot "malloc" even 1K of memory.
|
||||
// Therefore, we skip RLIMIT_AS on HP-UX.
|
||||
#if _GLIBCXX_HAVE_MEMLIMIT_AS && !defined(__hpux__)
|
||||
getrlimit(RLIMIT_AS, &r);
|
||||
r.rlim_cur = limit;
|
||||
setrlimit(RLIMIT_AS, &r);
|
||||
|
|
Loading…
Reference in New Issue