mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-11-02 09:49:06 -06:00
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:
1 parent
e80249ce2b
commit
5f18971afb
1 file changed
+5
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user