mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
C: write test error to stderr rather than stdout
This commit is contained in:
parent
8038f90fd8
commit
e569eaa8a6
|
@ -16,6 +16,7 @@
|
||||||
package org.teavm.junit;
|
package org.teavm.junit;
|
||||||
|
|
||||||
import java.io.PrintStream;
|
import java.io.PrintStream;
|
||||||
|
import org.teavm.classlib.impl.console.StderrOutputStream;
|
||||||
import org.teavm.classlib.impl.console.StdoutOutputStream;
|
import org.teavm.classlib.impl.console.StdoutOutputStream;
|
||||||
|
|
||||||
final class TestNativeEntryPoint {
|
final class TestNativeEntryPoint {
|
||||||
|
@ -27,7 +28,7 @@ final class TestNativeEntryPoint {
|
||||||
TestEntryPoint.run();
|
TestEntryPoint.run();
|
||||||
new PrintStream(StdoutOutputStream.INSTANCE).println("SUCCESS");
|
new PrintStream(StdoutOutputStream.INSTANCE).println("SUCCESS");
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
PrintStream out = new PrintStream(StdoutOutputStream.INSTANCE);
|
PrintStream out = new PrintStream(StderrOutputStream.INSTANCE);
|
||||||
e.printStackTrace(out);
|
e.printStackTrace(out);
|
||||||
out.println("FAILURE");
|
out.println("FAILURE");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user