SRFI-64 Handle run-test returning the runner instead of pass status.

Guile 3.0.5 fixed what they thought was a bug whering run-test returned
the rv of test-runner-on-final instead of the current test runner. Ctest
considered the returned object to be a successful test and always reported
the test passing.
This commit is contained in:
John Ralls committed 2024-05-28 15:07:41 -07:00
1 parent e80249ce2b
commit 5f18971afb
1 file changed
+5 -1
+5 -1
View File
@@ -149,7 +149,11 @@ function(gnc_add_scheme_test _TARGET _SOURCE_FILE)
(format #t \"%load-compiled-path = ~s~%\" %load-compiled-path)
(error \"Loading guile/site file from outside build tree!\" filename))))
(load-from-path \"${_TARGET}\")
(exit (run-test))"
(let ((result (run-test)))
(if (boolean? result)
(exit result)
(exit (test-runner-fail-count result))))
"
)
endif()
get_guile_env()