Commit a159d2d3 authored by Simon Marlow's avatar Simon Marlow
Browse files

FIX #1840: outofmem and outofmem2 need ulimit settings to avoid filling up swap

parent 40ac8528
TOP=../../.. TOP=../../..
include $(TOP)/mk/ include $(TOP)/mk/
include $(TOP)/mk/ include $(TOP)/mk/
$(TEST_HC) --make -fforce-recomp outofmem.hs -o outofmem
@$(MAKE) outofmem-prep >prep.out 2>prep.out
@ulimit -v 100000 2>/dev/null; ./outofmem || echo "exit($$?)"
$(TEST_HC) --make -fforce-recomp outofmem2.hs -o outofmem2
@$(MAKE) outofmem2-prep >prep.out 2>prep.out
@ulimit -v 100000 2>/dev/null; ./outofmem2 +RTS -M5m -RTS || echo "exit($$?)"
...@@ -21,8 +21,7 @@ test('divbyzero', ...@@ -21,8 +21,7 @@ test('divbyzero',
exit_code_if_platform(1, 'i386-unknown-mingw32')), exit_code_if_platform(1, 'i386-unknown-mingw32')),
compile_and_run, ['']) compile_and_run, [''])
test('outofmem', exit_code(1), compile_and_run, ['']) test('outofmem', normal, run_command, ['$MAKE -s --no-print-directory outofmem'])
test('outofmem2', composes([exit_code(251), test('outofmem2', composes([ expect_fail_if_compiler_lt('ghc','6.9'),
extra_run_opts('+RTS -M5m -RTS')]), extra_run_opts('+RTS -M5m -RTS')]),
compile_and_run, ['']) run_command, ['$MAKE -s --no-print-directory outofmem2'])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment