* test-suite/standalone/test-out-of-memory: Prevent the test harness
from being inlined. If the test harness is inlined, it might cause
the optimizer to omit the allocations being tested!
(lambda (k . args)
(print-exception (current-error-port) #f k args)
(write "Skipping test.\n" (current-error-port))
- (exit 0)))
+ (exit 77))) ; unresolved
;; 50 MB.
(define *limit* (* 50 1024 1024))
(lambda _
#t)))
+;; Prevent `test' from being inlined, which might cause an unused
+;; allocation to be omitted.
+(set! test test)
+
(use-modules (rnrs bytevectors))
(test (lambda ()