Fix stacktrace test for opt builds.
This commit is contained in:
@@ -33,9 +33,11 @@ fun main(args : Array<String>) {
|
|||||||
try {
|
try {
|
||||||
functionB()
|
functionB()
|
||||||
} catch (e: Throwable) {
|
} catch (e: Throwable) {
|
||||||
val st = e.getStackTrace()
|
val stacktrace = e.getStackTrace()
|
||||||
repeat(3) {
|
if (stacktrace.size >= 3) {
|
||||||
checkStringFormat(st[it])
|
repeat(3) {
|
||||||
|
checkStringFormat(stacktrace[it])
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user