use of com.oracle.truffle.llvm.tests.pipe.CaptureOutput in project graal by oracle.
the class CaptureOutputTest method testErrCapturing.
@Test
public void testErrCapturing() throws IOException {
String string = "Testoutput";
String captured;
try (CaptureOutput out = new CaptureNativeOutput()) {
System.err.print(string);
captured = out.getStdErr();
}
System.err.println("MUST NOT BE IN CAPTURE");
assertEquals(string, captured);
}
Aggregations