[commit: ghc] master: Add test cases for Ticket #12146. (8f4df7f)

git at git.haskell.org git at git.haskell.org
Fri Aug 17 18:54:12 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/8f4df7f769e0e625922d6f63fa20bd038f3c0c3d/ghc

>---------------------------------------------------------------

commit 8f4df7f769e0e625922d6f63fa20bd038f3c0c3d
Author: Aditya <adityadivekar03 at gmail.com>
Date:   Sat Jul 9 11:41:25 2016 +0530

    Add test cases for Ticket #12146.
    
    Two tests - a ghci script and a compile fail test have been added.


>---------------------------------------------------------------

8f4df7f769e0e625922d6f63fa20bd038f3c0c3d
 testsuite/tests/rename/should_fail/T12146.hs                         | 5 +++++
 .../{ghci/scripts/T6106.stderr => rename/should_fail/T12146.stderr}  | 2 +-
 testsuite/tests/rename/should_fail/all.T                             | 1 +
 3 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/testsuite/tests/rename/should_fail/T12146.hs b/testsuite/tests/rename/should_fail/T12146.hs
new file mode 100644
index 0000000..e44be13
--- /dev/null
+++ b/testsuite/tests/rename/should_fail/T12146.hs
@@ -0,0 +1,5 @@
+-- Test Trac #12146
+
+module T12146 where
+
+ipmort Data.Char
diff --git a/testsuite/tests/ghci/scripts/T6106.stderr b/testsuite/tests/rename/should_fail/T12146.stderr
similarity index 85%
copy from testsuite/tests/ghci/scripts/T6106.stderr
copy to testsuite/tests/rename/should_fail/T12146.stderr
index 7023e2f..0dcd154 100644
--- a/testsuite/tests/ghci/scripts/T6106.stderr
+++ b/testsuite/tests/rename/should_fail/T12146.stderr
@@ -1,4 +1,4 @@
 
-T6106.hs:1:1:
+T12146.hs:5:1:
     Parse error: module header, import declaration
     or top-level declaration expected.
diff --git a/testsuite/tests/rename/should_fail/all.T b/testsuite/tests/rename/should_fail/all.T
index 413b24f..f2bf30e 100644
--- a/testsuite/tests/rename/should_fail/all.T
+++ b/testsuite/tests/rename/should_fail/all.T
@@ -119,6 +119,7 @@ test('T10781', normal, compile_fail, [''])
 test('T11071', normal, compile_fail, [''])
 test('T11071a', normal, compile_fail, [''])
 test('T11663', normal, compile_fail, [''])
+test('T12146', normal, compile_fail, [''])
 test('T12229', normal, compile, [''])
 test('T12681', normal, multimod_compile_fail, ['T12681','-v0'])
 test('T12686', normal, compile_fail, [''])



More information about the ghc-commits mailing list