fix plai tests
This commit is contained in:
parent
b9406e6a75
commit
308a65e6ca
|
@ -5,7 +5,8 @@
|
|||
(define global-val 'global)
|
||||
|
||||
(define (mut-arg arg)
|
||||
(set! arg 'mutated))
|
||||
(set! arg 'mutated)
|
||||
0)
|
||||
|
||||
(mut-arg global-val)
|
||||
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
#lang racket
|
||||
|
||||
(require racket/runtime-path)
|
||||
(define-syntax (test stx)
|
||||
(syntax-case stx ()
|
||||
[(_ exp reg)
|
||||
(with-syntax ([line (syntax-line stx)])
|
||||
#'(test/proc line 'exp reg))]))
|
||||
|
||||
(define-runtime-path here ".")
|
||||
|
||||
(define ns (make-base-namespace))
|
||||
(define tests 0)
|
||||
(define failed 0)
|
||||
|
@ -18,7 +20,8 @@
|
|||
(let ([m (exn-message x)])
|
||||
(regexp-match? reg m))))
|
||||
exn-message))
|
||||
(parameterize ([current-namespace ns])
|
||||
(parameterize ([current-namespace ns]
|
||||
[current-directory here])
|
||||
(expand
|
||||
`(,#'module m plai/gc2/mutator
|
||||
(allocator-setup "good-collectors/trivial-collector.rkt" 200)
|
||||
|
|
Loading…
Reference in New Issue
Block a user