summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-e
diff options
context:
space:
mode:
authorReid Barton <rwbarton@gmail.com>2016-01-22 09:59:20 -0500
committerReid Barton <rwbarton@gmail.com>2016-01-22 09:59:23 -0500
commit9048c3dfee1c7c9171114c349714095b3abcc47a (patch)
tree87b9b147729e3e03680418b49c1abfae4c8ed885 /testsuite/tests/ghc-e
parent2df422161bccf7c0fad97e468085ebab1a17e19e (diff)
downloadhaskell-9048c3dfee1c7c9171114c349714095b3abcc47a.tar.gz
Don't print "Loaded GHCi configuration" message in ghc -e (#11478)
Summary: Also don't print it if the user specifically requested non-verbose output with -v0. Since this means there is no longer any test that checks for the message, add such a test. Test Plan: validate Reviewers: austin, bgamari Reviewed By: bgamari Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1817 GHC Trac Issues: #11478
Diffstat (limited to 'testsuite/tests/ghc-e')
-rw-r--r--testsuite/tests/ghc-e/should_run/Makefile4
-rw-r--r--testsuite/tests/ghc-e/should_run/T11478.script0
-rw-r--r--testsuite/tests/ghc-e/should_run/T11478.stdout1
-rw-r--r--testsuite/tests/ghc-e/should_run/all.T1
4 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/tests/ghc-e/should_run/Makefile b/testsuite/tests/ghc-e/should_run/Makefile
index 54ce8a31cc..c98b98ada7 100644
--- a/testsuite/tests/ghc-e/should_run/Makefile
+++ b/testsuite/tests/ghc-e/should_run/Makefile
@@ -41,3 +41,7 @@ T9905:
T9905b:
'$(TEST_HC)' $(TEST_HC_OPTS) -ignore-dot-ghci -e "import qualified Data.List as L" -e "L.sort [2,1]"
+
+# Ensure that ghc -e does not output extra messages about GHCi configuration files
+T11478:
+ '$(TEST_HC)' $(TEST_HC_OPTS) -ignore-dot-ghci -ghci-script T11478.script -e 3
diff --git a/testsuite/tests/ghc-e/should_run/T11478.script b/testsuite/tests/ghc-e/should_run/T11478.script
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/testsuite/tests/ghc-e/should_run/T11478.script
diff --git a/testsuite/tests/ghc-e/should_run/T11478.stdout b/testsuite/tests/ghc-e/should_run/T11478.stdout
new file mode 100644
index 0000000000..00750edc07
--- /dev/null
+++ b/testsuite/tests/ghc-e/should_run/T11478.stdout
@@ -0,0 +1 @@
+3
diff --git a/testsuite/tests/ghc-e/should_run/all.T b/testsuite/tests/ghc-e/should_run/all.T
index dcb720723d..ae286538cc 100644
--- a/testsuite/tests/ghc-e/should_run/all.T
+++ b/testsuite/tests/ghc-e/should_run/all.T
@@ -16,3 +16,4 @@ test('T7299', req_interp, run_command, ['$MAKE --no-print-directory -s T7299'])
test('T9086', req_interp, run_command, ['$MAKE --no-print-directory -s T9086'])
test('T9905', req_interp, run_command, ['$MAKE --no-print-directory -s T9905'])
test('T9905b', req_interp, run_command, ['$MAKE --no-print-directory -s T9905b'])
+test('T11478', req_interp, run_command, ['$MAKE --no-print-directory -s T11478'])