@@ -39,7 +39,7 @@ import qualified Data.Text.Lazy.Search as S (indices)
3939import qualified SlowFunctions as Slow
4040
4141import QuickCheckUtils (NotEmpty(..), small, genUnicode)
42−import TestUtils (withTempFile)
42+import TestUtils (withRedirect, withTempFile)
4343
4444-- Ensure that two potentially bottom values (in the sense of crashing
4545-- for some inputs, not looping infinitely) either both crash, or both
@@ -636,6 +636,12 @@ write_read unline filt writer reader (E _ e) m ts =
636636 r <- reader h'
637637 r `deepseq` return r
638638
639+t_put_get = write_read T.unlines T.filter put get
640+ where put h = withRedirect h stdout . T.putStr
641+ get h = withRedirect h stdin T.getContents
642+tl_put_get = write_read TL.unlines TL.filter put get
643+ where put h = withRedirect h stdout . TL.putStr
644+ get h = withRedirect h stdin TL.getContents
639645t_write_read = write_read T.unlines T.filter T.hPutStr T.hGetContents
640646tl_write_read = write_read TL.unlines TL.filter TL.hPutStr TL.hGetContents
641647
@@ -1043,6 +1049,10 @@ tests = [
10431049 testProperty "tl_write_read" tl_write_read,
10441050 testProperty "t_write_read_line" t_write_read_line,
10451051 testProperty "tl_write_read_line" tl_write_read_line
1052+ -- These tests are subject to I/O race conditions when run under
1053+ -- test-framework-quickcheck2.
1054+ -- testProperty "t_put_get" t_put_get
1055+ -- testProperty "tl_put_get" tl_put_get
10461056 ],
10471057
10481058 testGroup "lowlevel" [