// Child. Let's redirect its standard output to our pipe and replace process with taildup2(pipefd[1], STDOUT_FILENO);但我想要的是区分ERROR和普通OUTPUT。我怎么能这么做?当我在STDERR上有什么发现的时候,我需要对此做出反应。int pipefd[3]
我一直在尝试使用MavenCli,给了它ByteArrayOutpurStream-s as stdout和stderr。我有一些测试可以验证一些记录是否被写入到这些流中。只要我有一个测试,一切都没问题。但是,如果我引入另一个测试,它将失败,因为没有任何内容写入到stdout中。class MyIT extends SpecWithJUnit {
val outStream = new ByteArrayOutpurStream()
val errStre