Commit e5bb47a9 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Make mod144/mod146 work in CLEANUP mode

parent 4d19e3a1
include $(TOP)/mk/
include $(TOP)/mk/
rm -f Mod143_A.o Mod143_A.hi mod144.o mod144.hi mod144
@$(TEST_HC) -c Mod143_A.hs
@$(TEST_HC) mod144.hs
rm -f Mod145_A.o Mod145_A.hi mod146.o mod146.hi mod146
@$(TEST_HC) -c Mod145_A.hs
@$(TEST_HC) mod146.hs
......@@ -188,10 +188,10 @@ test('mod142', normal, multimod_compile_fail, ['mod142', '-v0'])
clean(['Mod142_A.hi', 'Mod142_A.o'])
test('mod143', normal, multimod_compile_fail, ['mod143', '-v0'])
clean(['Mod143_A.hi', 'Mod143_A.o'])
test('mod144', normal, compile_fail, [''])
test('mod144', compose(normal, exit_code(2)), run_command, ['$MAKE -s --no-print-directory mod144'])
test('mod145', normal, multimod_compile_fail, ['mod145', '-v0'])
clean(['Mod145_A.hi', 'Mod145_A.o'])
test('mod146', normal, compile_fail, [''])
test('mod146', compose(normal, exit_code(2)), run_command, ['$MAKE -s --no-print-directory mod146'])
test('mod147', normal, multimod_compile_fail, ['mod147', '-v0'])
clean(['Mod147_A.hi', 'Mod147_A.o'])
test('mod148', normal, compile, [''])
......@@ -3,3 +3,4 @@ mod144.hs:2:26:
Conflicting exports for `Bar':
`module Mod143_A' exports `Bar' imported from Mod143_A at mod144.hs:4:0-14
`module M' exports `Bar' defined at mod144.hs:6:12
make[1]: *** [mod144] Error 1
......@@ -3,3 +3,4 @@ mod146.hs:2:29:
Conflicting exports for `m1':
`module Mod146' exports `m1' defined at mod146.hs:7:2
`module Mod145_A' exports `m1' imported from Mod145_A at mod146.hs:4:0-14
make[1]: *** [mod146] Error 1
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