File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
tests/src/test/scala/org/scalanative/bindgen Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,10 @@ class BindgenReportingSpec extends FunSpec {
34
34
.generate()
35
35
36
36
result match {
37
- case Right (binding) => assert(binding.errors == errors)
38
- case Left (bindingErrors) => assert(bindingErrors == errors)
37
+ case Right (binding) =>
38
+ assert(binding.errors == errors)
39
+ case Left (errors) =>
40
+ fail(s " Non-zero exit code: \n ${errors.mkString(" \n " )}" )
39
41
}
40
42
} finally {
41
43
tempFile.delete()
Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ class BindgenSpec extends FunSpec {
30
30
result match {
31
31
case Right (binding) =>
32
32
binding.writeToFile(outputFile)
33
- case Left (error ) =>
34
- fail(" scala-native-bindgen failed: " + error .mkString(" \n " ))
33
+ case Left (errors ) =>
34
+ fail(" scala-native-bindgen failed: " + errors .mkString(" \n " ))
35
35
}
36
36
}
37
37
You can’t perform that action at this time.
0 commit comments