diff options
author | Gintautas Miliauskas <gintautas.miliauskas@gmail.com> | 2014-06-08 11:49:29 +0000 |
---|---|---|
committer | Joachim Breitner <mail@joachim-breitner.de> | 2014-07-07 09:21:13 +0200 |
commit | 55e7ab1210975e6276f3cab3ac0e1f35bcd772f0 (patch) | |
tree | e5cf32b00fbb442d711e999359bfa6fda671ec6e /testsuite/tests/ghc-e | |
parent | fa8553de237a2f91f8551d69ef604c1d8a007b5f (diff) | |
download | haskell-55e7ab1210975e6276f3cab3ac0e1f35bcd772f0.tar.gz |
Do not print the result of 'main' after invoking ':main' (fixes #9086).
Diffstat (limited to 'testsuite/tests/ghc-e')
-rw-r--r-- | testsuite/tests/ghc-e/should_run/Makefile | 2 | ||||
-rw-r--r-- | testsuite/tests/ghc-e/should_run/T9086.hs | 1 | ||||
-rw-r--r-- | testsuite/tests/ghc-e/should_run/all.T | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/tests/ghc-e/should_run/Makefile b/testsuite/tests/ghc-e/should_run/Makefile index 1971004d4c..5ed1ec2e6c 100644 --- a/testsuite/tests/ghc-e/should_run/Makefile +++ b/testsuite/tests/ghc-e/should_run/Makefile @@ -30,3 +30,5 @@ T3890: T7299: '$(TEST_HC)' $(TEST_HC_OPTS) -ignore-dot-ghci -e "Control.Concurrent.threadDelay (1000 * 1000)" +T9086: + '$(TEST_HC)' $(TEST_HC_OPTS) -ignore-dot-ghci -e ":main" T9086.hs diff --git a/testsuite/tests/ghc-e/should_run/T9086.hs b/testsuite/tests/ghc-e/should_run/T9086.hs new file mode 100644 index 0000000000..a2b4ace33a --- /dev/null +++ b/testsuite/tests/ghc-e/should_run/T9086.hs @@ -0,0 +1 @@ +main = return "this should not be printed" diff --git a/testsuite/tests/ghc-e/should_run/all.T b/testsuite/tests/ghc-e/should_run/all.T index 4ab7567358..9f6491819d 100644 --- a/testsuite/tests/ghc-e/should_run/all.T +++ b/testsuite/tests/ghc-e/should_run/all.T @@ -14,3 +14,4 @@ test('T2228', test('T2636', req_interp, run_command, ['$MAKE --no-print-directory -s T2636']) test('T3890', req_interp, run_command, ['$MAKE --no-print-directory -s T3890']) test('T7299', req_interp, run_command, ['$MAKE --no-print-directory -s T7299']) +test('T9086', req_interp, run_command, ['$MAKE --no-print-directory -s T9086']) |