diff --git a/test-suite/ChangeLog b/test-suite/ChangeLog index 82545273f..a4da3e98d 100644 --- a/test-suite/ChangeLog +++ b/test-suite/ChangeLog @@ -1,3 +1,16 @@ +2007-10-19 Neil Jerram + + * tests/eval.test (promises)[unmemoizing a promise]: New test. + + * tests/continuations.test ("continuations"): Use + with-debugging-evaluator. + + * standalone/test-use-srfi: Use -q to avoid picking up the user's + ~/.guile file + + * lib.scm (with-debugging-evaluator*, with-debugging-evaluator): + New utilities. + 2007-10-17 Ludovic Courtès * tests/reader.test (reading)[CR recognized as a token diff --git a/test-suite/lib.scm b/test-suite/lib.scm index 2daf95c60..c4ddf9e7c 100644 --- a/test-suite/lib.scm +++ b/test-suite/lib.scm @@ -42,6 +42,9 @@ with-test-prefix with-test-prefix* current-test-prefix format-test-name + ;; Using the debugging evaluator. + with-debugging-evaluator with-debugging-evaluator* + ;; Reporting results in various ways. register-reporter unregister-reporter reporter-registered? make-count-reporter print-counts @@ -408,6 +411,22 @@ (defmacro with-test-prefix (prefix . body) `(with-test-prefix* ,prefix (lambda () ,@body))) +;;; Call THUNK using the debugging evaluator. +(define (with-debugging-evaluator* thunk) + (let ((dopts #f)) + (dynamic-wind + (lambda () + (set! dopts (debug-options)) + (debug-enable 'debug)) + thunk + (lambda () + (debug-options dopts))))) + +;;; Evaluate BODY... using the debugging evaluator. +(define-macro (with-debugging-evaluator . body) + `(with-debugging-evaluator* (lambda () ,@body))) + + ;;;; REPORTERS ;;;; diff --git a/test-suite/standalone/test-use-srfi b/test-suite/standalone/test-use-srfi index 309b3bda7..7186b5a24 100755 --- a/test-suite/standalone/test-use-srfi +++ b/test-suite/standalone/test-use-srfi @@ -19,14 +19,14 @@ # Test that two srfi numbers on the command line work. # -guile --use-srfi=1,10 >/dev/null </dev/null </dev/null </dev/null </dev/null </dev/null </dev/null <