fix: handle runtime_error during testing
This commit is contained in:
@@ -92,7 +92,13 @@ class ParallelExamplesSpec extends AnyFlatSpec with BeforeAndAfterAll {
|
|||||||
)
|
)
|
||||||
|
|
||||||
assert(process.exitValue == expectedExit)
|
assert(process.exitValue == expectedExit)
|
||||||
assert(stdout.toString.replaceAll("0x[0-9a-f]+", "#addrs#") == expectedOutput)
|
assert(
|
||||||
|
stdout.toString
|
||||||
|
.replaceAll("0x[0-9a-f]+", "#addrs#")
|
||||||
|
.replaceAll("fatal error:.*", "#runtime_error#\u0000")
|
||||||
|
.takeWhile(_ != '\u0000')
|
||||||
|
== expectedOutput
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user