[Haskell-cafe] How to Hijack stdin,err,out, thread safely?
Hiromi ISHII
konn.jinro at gmail.com
Tue Jun 30 19:08:29 UTC 2015
> On 2015/07/01 4:00, Brandon Allbery <allbery.b at gmail.com> wrote:
>
> Handles are process level, not thread level, in all supported operating systems. If something is writing to stderr then it is writing to a process level entity and there is no way to capture it at the level of a thread.
>
Oh, yes. I get it. So the way I wanted to take in is completely wrong.
> On 2015/07/01 4:02, Roman Cheplyaka wrote:
>
> It's not clear from your email whether you are concerned about the
> output of QuickCheck itself or the functions you're testing.
Sorry for my bad writing. I need the former.
> In the former case, there is a way to get the output of QuickCheck as a
> String without printing it. Take a look at tasty-quickcheck's code for
> an example.
It seems I can work it out in the same way with tasty-qc.
Thanks!
-- Hiromi ISHII
konn.jinro at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20150701/b5dc27d7/attachment.sig>
More information about the Haskell-Cafe
mailing list