Skip to content
Snippets Groups Projects
Commit c17e3e2f authored by Simon Marlow's avatar Simon Marlow
Browse files

test for #5114

parent 7b57f8db
No related branches found
No related tags found
Loading
...@@ -464,9 +464,15 @@ rtsopts002: ...@@ -464,9 +464,15 @@ rtsopts002:
.PHONY: withRtsOpts .PHONY: withRtsOpts
withRtsOpts: withRtsOpts:
$(RM) withRtsOpts$(exeext) withRtsOpts.hi withRtsOpts.o $(RM) withRtsOpts$(exeext) withRtsOpts.hi withRtsOpts.o withRtsOpts.out
"$(TEST_HC)" -v0 --make withRtsOpts -with-rtsopts=--info "$(TEST_HC)" -v0 --make withRtsOpts -with-rtsopts=--info
./withRtsOpts | head -1 ./withRtsOpts | head -1
# Also test for non-safe RTS opts, these should be allowed too,
# since the author has explicitly requested them. (#5114)
$(RM) withRtsOpts$(exeext) withRtsOpts.hi withRtsOpts.o withRtsOpts.out
"$(TEST_HC)" -v0 --make withRtsOpts -with-rtsopts=-twithRtsOpts.out
./withRtsOpts | head -1
test -f withRtsOpts.out
.PHONY: T3364 .PHONY: T3364
T3364: T3364:
......
...@@ -310,7 +310,10 @@ test('rtsopts001', normal, run_command, ...@@ -310,7 +310,10 @@ test('rtsopts001', normal, run_command,
test('rtsopts002', normal, run_command, test('rtsopts002', normal, run_command,
['$MAKE -s --no-print-directory rtsopts002']) ['$MAKE -s --no-print-directory rtsopts002'])
test('withRtsOpts', normal, run_command, test('withRtsOpts', [ extra_clean(['withRtsOpts', 'withRtsOpts.exe',
'withRtsOpts.hi', 'withRtsOpts.o',
'withRtsOpts.out']) ],
run_command,
['$MAKE -s --no-print-directory withRtsOpts']) ['$MAKE -s --no-print-directory withRtsOpts'])
test('T3389', normal, compile_and_run, ['']) test('T3389', normal, compile_and_run, [''])
test('T3364', normalise_fun(normalise_errmsg), run_command, test('T3364', normalise_fun(normalise_errmsg), run_command,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment