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