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 {
3434 .generate()
3535
3636 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 " )}" )
3941 }
4042 } finally {
4143 tempFile.delete()
Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ class BindgenSpec extends FunSpec {
3030 result match {
3131 case Right (binding) =>
3232 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 " ))
3535 }
3636 }
3737
You can’t perform that action at this time.
0 commit comments