typed-racket/typed-racket-test/fail/sandboxed-unsafe-ops.rkt
Sam Tobin-Hochstadt 3f372c3b04 Try removing more limits on this test so it succeeds on Travis.
Suggestion from @mflatt.
2016-07-12 10:41:18 -04:00

18 lines
460 B
Racket

#;
(exn-pred #rx"access disallowed by")
#lang racket/base
;; This test checks that TR's unsafe libraries are not accessible
;; from a sandboxed context
(require racket/sandbox)
;; this doesn't need a memory limit
(parameterize ([sandbox-memory-limit #f]
[sandbox-eval-limits #f])
(define eval (make-evaluator 'typed/racket))
(eval '(require typed/racket/unsafe))
;; should fail
(eval '(unsafe-require/typed racket/base [values 3])))