[wpiutil] Add JNI access to C++ stderr (#4381)

This is useful in some debugging scenarios.  System.err is separately buffered, so when e.g. debugging test cases it doesn't interleave correctly with the C++ stdout/stderr logging. Even using flush() doesn't seem to help, I think because Gradle does its own buffering.
This commit is contained in:
Peter Johnson
2022-08-30 20:40:16 -07:00
committed by GitHub
parent fdb5a2791f
commit d22ff8a158
2 changed files with 15 additions and 0 deletions

View File

@@ -54,6 +54,8 @@ public class WPIUtilJNI {
libraryLoaded = true;
}
public static native void writeStderr(String str);
public static native void enableMockTime();
public static native void disableMockTime();