Commit e40bba06 authored by Simon Marlow's avatar Simon Marlow

ffi002: work around dependence on old cmd line semantics

parent b19322bb
......@@ -10,3 +10,6 @@ ffi018_ghci_setup :
2276_ghci_setup :
'$(TEST_HC)' -c 2276_ghci_c.c
ffi002_setup :
'$(TEST_HC)' -c ffi002.hs
......@@ -17,7 +17,12 @@ test('fed001', compose(only_compiler_types(['ghc']),
# Omit GHCi for these two, as they use foreign export
test('ffi001', omit_ways(['ghci']), compile_and_run, [''])
test('ffi002', [ omit_ways(['ghci']), extra_clean(['ffi002_c.o']) ],
test('ffi002', [ omit_ways(['ghci']),
extra_clean(['ffi002_c.o']),
cmd_prefix('$MAKE ffi002_setup && ') ],
# The ffi002_setup hack is to ensure that we generate
# ffi002_stub.h before compiling ffi002_c.c, which
# needs it.
compile_and_run, ['ffi002_c.c -no-hs-main'])
test('ffi003', normal, compile_and_run, [''])
......
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