File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
test-android/src/androidInstrumentedTest/kotlin/org/kotlincrypto/random/test/android Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import androidx.test.core.app.ApplicationProvider
2020import io.matthewnelson.kmp.file.toFile
2121import io.matthewnelson.kmp.process.Process
2222import kotlin.test.Test
23- import kotlin.test.assertEquals
23+ import kotlin.test.fail
2424
2525class AndroidNativeTest {
2626
@@ -35,8 +35,13 @@ class AndroidNativeTest {
3535 maxBuffer = Int .MAX_VALUE / 2
3636 }
3737
38- assertEquals(0 , out .processInfo.exitCode, out .stdout)
39- println (out .stdout)
40- println (out .stderr)
38+ if (out .processInfo.exitCode == 0 ) return
39+
40+ val sb = StringBuilder ()
41+ sb.appendLine(out .processInfo.toString()).appendLine()
42+ out .processError?.let { sb.appendLine(it).appendLine() }
43+ sb.appendLine(out .stdout).appendLine()
44+ sb.appendLine(out .stderr).appendLine()
45+ fail(sb.toString())
4146 }
4247}
You can’t perform that action at this time.
0 commit comments