Skip to content

Commit

Permalink
SRFI-64 Handle run-test returning the runner instead of pass status.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jralls committed May 23, 2024
1 parent 0467ac5 commit 7d6b520
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion common/cmake_modules/GncAddTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 7d6b520

Please sign in to comment.