fix Core.Execute and test

This commit is contained in:
Alex Gryzlov 2019-07-10 15:59:25 +03:00
parent 233a07e76f
commit f66e8a961e
4 changed files with 5 additions and 2 deletions

View File

@ -394,7 +394,7 @@ execForeign env ctxt arity ty fn xs onfail
execApp env ctxt ioUnit (drop arity xs)
_ -> execFail . Msg $
"The argument to fileRemove should be a constant string, but it was " ++
show handle ++
show fileStr ++
". Are all cases covered?"
| Just (FFun "fileClose" [(_,handle)] _) <- foreignFromTT arity ty fn xs
= case handle of

View File

@ -141,6 +141,7 @@ testFamiliesData = [
, ( 10, NODE_CG )
, ( 11, NODE_CG )
, ( 12, NODE_CG )
, ( 13, C_CG )
]),
("folding", "Folding",
[ ( 1, ANY )]),

View File

@ -1 +1 @@
success
success

View File

@ -2,4 +2,6 @@
echo "test" > remove.me
${IDRIS:-idris} $@ --quiet --port none ffi013.idr -o ffi013
./ffi013
echo "test2" > remove.me
${IDRIS:-idris} $@ --quiet --port none --nocolour ffi013.idr --exec main
rm -f ffi013 remove.me *.ibc