make the example-test private file's work be behind a thunk (so more drdr friendly)
This commit is contained in:
parent
36155e913e
commit
ff800c997e
|
@ -29,4 +29,6 @@
|
||||||
(cons
|
(cons
|
||||||
new-collection-root
|
new-collection-root
|
||||||
(current-library-collection-paths))])
|
(current-library-collection-paths))])
|
||||||
(namespace-require 'tests/drracket/private/run-example-tool))
|
(namespace-require 'tests/drracket/private/run-example-tool)
|
||||||
|
(eval '(go)))
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,11 @@
|
||||||
framework/test
|
framework/test
|
||||||
mrlib/switchable-button)
|
mrlib/switchable-button)
|
||||||
|
|
||||||
(define init-options@
|
(provide go)
|
||||||
|
|
||||||
|
(define (go)
|
||||||
|
|
||||||
|
(define init-options@
|
||||||
(unit (import setup-option^)
|
(unit (import setup-option^)
|
||||||
(export)
|
(export)
|
||||||
(make-zo #f)
|
(make-zo #f)
|
||||||
|
@ -31,7 +35,7 @@
|
||||||
(setup-program-name "raco setup")
|
(setup-program-name "raco setup")
|
||||||
(specific-collections '(("coll")))))
|
(specific-collections '(("coll")))))
|
||||||
|
|
||||||
(let ([c (make-custodian)])
|
(let ([c (make-custodian)])
|
||||||
(parameterize ([current-custodian c]
|
(parameterize ([current-custodian c]
|
||||||
[exit-handler
|
[exit-handler
|
||||||
(λ (x)
|
(λ (x)
|
||||||
|
@ -51,7 +55,7 @@
|
||||||
[((COMPILER : compiler^)) compiler@ COMPILER-OPTION DYNEXT-FILE DYNEXT-COMPILE DYNEXT-LINK]
|
[((COMPILER : compiler^)) compiler@ COMPILER-OPTION DYNEXT-FILE DYNEXT-COMPILE DYNEXT-LINK]
|
||||||
[() setup@ LAUNCHER OPTIONS COMPILER-OPTION COMPILER DYNEXT-FILE])))))
|
[() setup@ LAUNCHER OPTIONS COMPILER-OPTION COMPILER DYNEXT-FILE])))))
|
||||||
|
|
||||||
(fire-up-drscheme-and-run-tests
|
(fire-up-drscheme-and-run-tests
|
||||||
(λ ()
|
(λ ()
|
||||||
(define drs (wait-for-drscheme-frame))
|
(define drs (wait-for-drscheme-frame))
|
||||||
(queue-callback/res (λ () (send (send drs get-definitions-canvas) focus)))
|
(queue-callback/res (λ () (send (send drs get-definitions-canvas) focus)))
|
||||||
|
@ -76,5 +80,4 @@
|
||||||
(fprintf (current-error-port)
|
(fprintf (current-error-port)
|
||||||
"example-tool.rkt: test failed;\nexpected ~s\n but got ~s"
|
"example-tool.rkt: test failed;\nexpected ~s\n but got ~s"
|
||||||
expected
|
expected
|
||||||
content))))
|
content)))))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user