Skip to content
Snippets Groups Projects
Commit f48bdb46 authored by quasicomputational's avatar quasicomputational
Browse files

Update tests to accomodate output changes in GHC HEAD.

parent 3b98a57e
No related branches found
No related tags found
No related merge requests found
......@@ -5,4 +5,4 @@ main = setupAndCabalTest $ do
r <- fails $ setup' "build" []
assertRegex "error should be in B.hs" "^B.hs:" r
assertRegex "error should be \"Could not find module Data.Set\""
"(Could not find module|Failed to load interface).*Data.Set" r
"(Could not (load|find) module|Failed to load interface).*Data.Set" r
......@@ -4,5 +4,8 @@ main = setupAndCabalTest $ do
setup "configure" []
r <- fails $ setup' "build" []
assertOutputContains "Foobar" r
assertOutputContains "Could not find" r
assertRegex
"error should be about not being able to find a module"
"Could not (find|load) module"
r
return ()
......@@ -8,4 +8,4 @@ main = setupAndCabalTest $ do
assertRegex "error should be in MyLibrary.hs" "^MyLibrary.hs:" r
assertRegex
"error should be \"Could not find module `Text\\.PrettyPrint\""
"(Could not find module|Failed to load interface for).*Text\\.PrettyPrint" r
"(Could not (load|find) module|Failed to load interface for).*Text\\.PrettyPrint" r
......@@ -8,4 +8,4 @@ main = setupAndCabalTest $ do
assertRegex "error should be in lemon.hs" "^lemon.hs:" r
assertRegex
"error should be \"Could not find module `Text\\.PrettyPrint\""
"(Could not find module|Failed to load interface for).*Text\\.PrettyPrint" r
"(Could not (load|find) module|Failed to load interface for).*Text\\.PrettyPrint" r
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