[commit: ghc] ghc-8.2: base: Add test for #13525 (febdca9)

git at git.haskell.org git at git.haskell.org
Sat Apr 22 02:29:19 UTC 2017


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

On branch  : ghc-8.2
Link       : http://ghc.haskell.org/trac/ghc/changeset/febdca91fc813eae8d72a6305c704a80a37656c4/ghc

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

commit febdca91fc813eae8d72a6305c704a80a37656c4
Author: Ben Gamari <bgamari.foss at gmail.com>
Date:   Tue Apr 4 20:48:20 2017 -0400

    base: Add test for #13525
    
    Reviewers: austin, hvr
    
    Subscribers: rwbarton, thomie
    
    Differential Revision: https://phabricator.haskell.org/D3419
    
    (cherry picked from commit 3d523fd990bbb31ca97ea22059ec9d53f0705d8c)


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

febdca91fc813eae8d72a6305c704a80a37656c4
 libraries/base/tests/T13525.hs | 7 +++++++
 libraries/base/tests/all.T     | 1 +
 2 files changed, 8 insertions(+)

diff --git a/libraries/base/tests/T13525.hs b/libraries/base/tests/T13525.hs
new file mode 100644
index 0000000..1bb01b6
--- /dev/null
+++ b/libraries/base/tests/T13525.hs
@@ -0,0 +1,7 @@
+import System.IO
+import System.Timeout
+
+main :: IO ()
+main = do
+    hWaitForInput stdin (5 * 1000)
+    return ()
diff --git a/libraries/base/tests/all.T b/libraries/base/tests/all.T
index 13049f7..49298d3 100644
--- a/libraries/base/tests/all.T
+++ b/libraries/base/tests/all.T
@@ -211,3 +211,4 @@ test('T13191',
         , only_ways(['normal'])],
       compile_and_run,
       ['-O'])
+test('T13525', expect_broken(13525), compile_and_run, [''])



More information about the ghc-commits mailing list