fix the test-suite sandbox
svn: r12907
This commit is contained in:
parent
064776348a
commit
23e8624e41
|
@ -79,11 +79,12 @@ transcript.
|
||||||
(define (load-in-sandbox file)
|
(define (load-in-sandbox file)
|
||||||
(define-syntax-rule (S id) (dynamic-require 'scheme/sandbox 'id))
|
(define-syntax-rule (S id) (dynamic-require 'scheme/sandbox 'id))
|
||||||
(let ([e ((S call-with-trusted-sandbox-configuration)
|
(let ([e ((S call-with-trusted-sandbox-configuration)
|
||||||
(parameterize ([(S sandbox-input) current-input-port]
|
(lambda ()
|
||||||
[(S sandbox-output) current-output-port]
|
(parameterize ([(S sandbox-input) current-input-port]
|
||||||
[(S sandbox-error-output) current-error-port]
|
[(S sandbox-output) current-output-port]
|
||||||
[(S sandbox-memory-limit) 100]) ; 100mb per box
|
[(S sandbox-error-output) current-error-port]
|
||||||
((S make-evaluator) '(begin) #:requires (list 'scheme))))])
|
[(S sandbox-memory-limit) 100]) ; 100mb per box
|
||||||
|
((S make-evaluator) '(begin) #:requires (list 'scheme)))))])
|
||||||
(e `(load-relative "testing.ss"))
|
(e `(load-relative "testing.ss"))
|
||||||
(e `(define real-error-port (quote ,real-error-port)))
|
(e `(define real-error-port (quote ,real-error-port)))
|
||||||
(e `(define Section-prefix ,Section-prefix))
|
(e `(define Section-prefix ,Section-prefix))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user