mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-10-14 19:27:09 -04:00
Remove the temporary test worker crash probe
This commit is contained in:
1 file changed
+1
-14
@@ -39,20 +39,7 @@ object CrashHandler {
|
||||
} catch (e: Throwable) {
|
||||
// Nothing more to do for a crash inside the crash handler.
|
||||
} finally {
|
||||
if (previous != null) {
|
||||
previous.uncaughtException(thread, error)
|
||||
} else {
|
||||
// Temporary: bypass captured System.err when diagnosing the test worker's exit 2.
|
||||
try {
|
||||
val raw = java.io.PrintStream(java.io.FileOutputStream(java.io.FileDescriptor.err), true)
|
||||
raw.println("DroidDeck CrashHandler: uncaught on ${thread.name}")
|
||||
error.printStackTrace(raw)
|
||||
raw.flush()
|
||||
} catch (_: Throwable) {
|
||||
} finally {
|
||||
Runtime.getRuntime().halt(2)
|
||||
}
|
||||
}
|
||||
previous?.uncaughtException(thread, error) ?: Runtime.getRuntime().halt(2)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user