Skip to content
Snippets Groups Projects
Commit db97ed9f authored by Thomas Miedema's avatar Thomas Miedema
Browse files

Add (failing) test for #11247

parent a7ad0b91
No related branches found
No related tags found
No related merge requests found
......@@ -10,3 +10,15 @@ T7859:
#compile.
T8601:
-echo 'main = putStrLn "Hello World!"' | '$(RUNGHC)' -f '$(TEST_HC)' -hide-package --ghc-arg=bytestring
T11247:
# Should all work:
'$(RUNGHC)' T11247-hs
'$(RUNGHC)' T11247-hs.hs
'$(RUNGHC)' T11247-lhs
'$(RUNGHC)' T11247-lhs.lhs
'$(RUNGHC)' T11247-no-extension
# Should print a "nice" error message that it can't find "foo." and
# "foo.bar"
-'$(RUNGHC)' foo.
-'$(RUNGHC)' foo.bar
main = print "hello from a .hs file"
> main = print "hello from a .lhs file"
main = print "hello from a file without extension"
target ‘foo.’ is not a module name or a source file
target ‘foo.bar’ is not a module name or a source file
"hello from a .hs file"
"hello from a .hs file"
"hello from a .lhs file"
"hello from a .lhs file"
"hello from a file without extension"
......@@ -3,3 +3,6 @@ test('T7859', req_interp, run_command,
test('T8601', req_interp, run_command,
['$MAKE --no-print-directory -s T8601'])
test('T11247', [req_interp, expect_broken(11247)], run_command,
['$MAKE --no-print-directory -s T11247'])
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