Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
a159d2d3
Commit
a159d2d3
authored
Nov 14, 2007
by
Simon Marlow
Browse files
FIX #1840: outofmem and outofmem2 need ulimit settings to avoid filling up swap
parent
40ac8528
Changes
4
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/rts/Makefile
View file @
a159d2d3
TOP
=
../../..
include
$(TOP)/mk/boilerplate.mk
include
$(TOP)/mk/test.mk
outofmem-prep
::
$(TEST_HC)
--make
-fforce-recomp
outofmem.hs
-o
outofmem
outofmem
::
@
$(MAKE)
outofmem-prep
>
prep.out 2>prep.out
@
ulimit
-v
100000 2>/dev/null
;
./outofmem
||
echo
"exit(
$$
?)"
outofmem2-prep
::
$(TEST_HC)
--make
-fforce-recomp
outofmem2.hs
-o
outofmem2
outofmem2
::
@
$(MAKE)
outofmem2-prep
>
prep.out 2>prep.out
@
ulimit
-v
100000 2>/dev/null
;
./outofmem2 +RTS
-M5m
-RTS
||
echo
"exit(
$$
?)"
testsuite/tests/ghc-regress/rts/all.T
View file @
a159d2d3
...
...
@@ -21,8 +21,7 @@ test('divbyzero',
exit_code_if_platform
(
1
,
'
i386-unknown-mingw32
')),
compile_and_run
,
[''])
test
('
outofmem
',
exit_code
(
1
),
compile_and_run
,
[''])
test
('
outofmem2
',
composes
([
exit_code
(
251
),
expect_fail_if_compiler_lt
('
ghc
','
6.9
'),
extra_run_opts
('
+RTS -M5m -RTS
')]),
compile_and_run
,
[''])
test
('
outofmem
',
normal
,
run_command
,
['
$MAKE -s --no-print-directory outofmem
'])
test
('
outofmem2
',
composes
([
expect_fail_if_compiler_lt
('
ghc
','
6.9
'),
extra_run_opts
('
+RTS -M5m -RTS
')]),
run_command
,
['
$MAKE -s --no-print-directory outofmem2
'])
testsuite/tests/ghc-regress/rts/outofmem.stdout
0 → 100644
View file @
a159d2d3
exit(1)
testsuite/tests/ghc-regress/rts/outofmem2.stdout
0 → 100644
View file @
a159d2d3
exit(251)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment