tests: remove "gui" lock declarations
The fresh PLTUSERHOME created by `raco test --drdr` should avoid the problems that made the lock necessary before.
This commit is contained in:
parent
2d3b856b71
commit
165f21a192
|
@ -34,5 +34,4 @@
|
||||||
|
|
||||||
(module+ test
|
(module+ test
|
||||||
(module config info
|
(module config info
|
||||||
(define lock-name "gui")
|
|
||||||
(define random? #t)))
|
(define random? #t)))
|
||||||
|
|
|
@ -21,7 +21,3 @@
|
||||||
(define labels (map (λ (x) (send x get-label)) windows))
|
(define labels (map (λ (x) (send x get-label)) windows))
|
||||||
(member "Hangman" labels))
|
(member "Hangman" labels))
|
||||||
(poll-until user-hangman-frame?)))
|
(poll-until user-hangman-frame?)))
|
||||||
|
|
||||||
(module+ test
|
|
||||||
(module config info
|
|
||||||
(define lock-name "gui")))
|
|
||||||
|
|
|
@ -234,5 +234,4 @@ add this test:
|
||||||
|
|
||||||
(module+ test
|
(module+ test
|
||||||
(module config info
|
(module config info
|
||||||
(define lock-name "gui")
|
|
||||||
(define timeout 500)))
|
(define timeout 500)))
|
||||||
|
|
|
@ -1580,5 +1580,4 @@ the settings above should match r5rs
|
||||||
|
|
||||||
(module+ test
|
(module+ test
|
||||||
(module config info
|
(module config info
|
||||||
(define lock-name "gui")
|
|
||||||
(define timeout 1500)))
|
(define timeout 1500)))
|
||||||
|
|
|
@ -72,7 +72,3 @@
|
||||||
(λ ()
|
(λ ()
|
||||||
(send (send drs-frame get-definitions-text) syncheck:arrows-visible?)))
|
(send (send drs-frame get-definitions-text) syncheck:arrows-visible?)))
|
||||||
(wait-and-print))))
|
(wait-and-print))))
|
||||||
|
|
||||||
(module+ test
|
|
||||||
(module config info
|
|
||||||
(define lock-name "gui")))
|
|
||||||
|
|
|
@ -428,5 +428,4 @@
|
||||||
(eval-jit-enabled #f)
|
(eval-jit-enabled #f)
|
||||||
(dynamic-require (quote-module-path "..") #f)
|
(dynamic-require (quote-module-path "..") #f)
|
||||||
(module config info
|
(module config info
|
||||||
(define lock-name "gui")
|
|
||||||
(define timeout 800)))
|
(define timeout 800)))
|
||||||
|
|
|
@ -4,5 +4,4 @@
|
||||||
|
|
||||||
(module+ test
|
(module+ test
|
||||||
(module config info
|
(module config info
|
||||||
(define lock-name "gui")
|
|
||||||
(define timeout 300)))
|
(define timeout 300)))
|
||||||
|
|
|
@ -4,5 +4,4 @@
|
||||||
|
|
||||||
(module+ test
|
(module+ test
|
||||||
(module config info
|
(module config info
|
||||||
(define lock-name "gui")
|
|
||||||
(define timeout 300)))
|
(define timeout 300)))
|
||||||
|
|
|
@ -4,4 +4,4 @@
|
||||||
|
|
||||||
(module+ test
|
(module+ test
|
||||||
(module config info
|
(module config info
|
||||||
(define lock-name "gui")))
|
(define timeout 300)))
|
||||||
|
|
|
@ -4,5 +4,4 @@
|
||||||
|
|
||||||
(module+ test
|
(module+ test
|
||||||
(module config info
|
(module config info
|
||||||
(define lock-name "gui")
|
|
||||||
(define timeout 300)))
|
(define timeout 300)))
|
||||||
|
|
|
@ -24,7 +24,3 @@
|
||||||
(error 'snips.rkt "lost drracket frame while saving ~s" rfile))))
|
(error 'snips.rkt "lost drracket frame while saving ~s" rfile))))
|
||||||
|
|
||||||
(delete-directory/files tmpdir)))
|
(delete-directory/files tmpdir)))
|
||||||
|
|
||||||
(module+ test
|
|
||||||
(module config info
|
|
||||||
(define lock-name "gui")))
|
|
||||||
|
|
|
@ -1682,5 +1682,4 @@
|
||||||
|
|
||||||
(module+ test
|
(module+ test
|
||||||
(module config info
|
(module config info
|
||||||
(define lock-name "gui")
|
|
||||||
(define timeout 200)))
|
(define timeout 200)))
|
||||||
|
|
|
@ -117,7 +117,3 @@
|
||||||
(test-line t)
|
(test-line t)
|
||||||
got
|
got
|
||||||
(test-uncovered t)))))))))
|
(test-uncovered t)))))))))
|
||||||
|
|
||||||
(module+ test
|
|
||||||
(module config info
|
|
||||||
(define lock-name "gui")))
|
|
||||||
|
|
|
@ -46,7 +46,3 @@
|
||||||
(delete-file fn)
|
(delete-file fn)
|
||||||
(unless (equal? result "1\n> ")
|
(unless (equal? result "1\n> ")
|
||||||
(error 'save-teaching-lang-file.rkt "expected the program to produce 1 (followed by the prompt), got ~s" result)))))))
|
(error 'save-teaching-lang-file.rkt "expected the program to produce 1 (followed by the prompt), got ~s" result)))))))
|
||||||
|
|
||||||
(module+ test
|
|
||||||
(module config info
|
|
||||||
(define lock-name "gui")))
|
|
||||||
|
|
|
@ -274,7 +274,3 @@
|
||||||
(test-built-in-teachpacks))
|
(test-built-in-teachpacks))
|
||||||
|
|
||||||
(fire-up-drracket-and-run-tests run-test)
|
(fire-up-drracket-and-run-tests run-test)
|
||||||
|
|
||||||
(module+ test
|
|
||||||
(module config info
|
|
||||||
(define lock-name "gui")))
|
|
||||||
|
|
|
@ -522,5 +522,4 @@
|
||||||
|
|
||||||
(module+ test
|
(module+ test
|
||||||
(module config info
|
(module config info
|
||||||
(define lock-name "gui")
|
|
||||||
(define timeout 480)))
|
(define timeout 480)))
|
||||||
|
|
|
@ -288,7 +288,3 @@ The col and row type specs are in sig.rkt and the solution type is:
|
||||||
',(solve name rows cols))))
|
',(solve name rows cols))))
|
||||||
problems)))))))))))
|
problems)))))))))))
|
||||||
sets)
|
sets)
|
||||||
|
|
||||||
(module+ test
|
|
||||||
(module config info
|
|
||||||
(define lock-name "gui")))
|
|
||||||
|
|
|
@ -33,7 +33,3 @@
|
||||||
(>= (send vpb1 get-aligned-min-height)
|
(>= (send vpb1 get-aligned-min-height)
|
||||||
(send vpb2 get-aligned-min-height)
|
(send vpb2 get-aligned-min-height)
|
||||||
(snip-height es))
|
(snip-height es))
|
||||||
|
|
||||||
(module+ test
|
|
||||||
(module config info
|
|
||||||
(define lock-name "gui")))
|
|
||||||
|
|
|
@ -126,7 +126,3 @@
|
||||||
(send frame show #f))
|
(send frame show #f))
|
||||||
|
|
||||||
;; (printf "tests done\n")
|
;; (printf "tests done\n")
|
||||||
|
|
||||||
(module+ test
|
|
||||||
(module config info
|
|
||||||
(define lock-name "gui")))
|
|
||||||
|
|
|
@ -145,7 +145,3 @@
|
||||||
|
|
||||||
(send frame show #f)
|
(send frame show #f)
|
||||||
(printf "done\n")
|
(printf "done\n")
|
||||||
|
|
||||||
(module+ test
|
|
||||||
(module config info
|
|
||||||
(define lock-name "gui")))
|
|
||||||
|
|
|
@ -112,7 +112,3 @@
|
||||||
|
|
||||||
(send frame show #f)
|
(send frame show #f)
|
||||||
(printf "done\n")
|
(printf "done\n")
|
||||||
|
|
||||||
(module+ test
|
|
||||||
(module config info
|
|
||||||
(define lock-name "gui")))
|
|
||||||
|
|
|
@ -121,5 +121,4 @@
|
||||||
|
|
||||||
(module+ test
|
(module+ test
|
||||||
(module config info
|
(module config info
|
||||||
(define lock-name "gui")
|
|
||||||
(define timeout 360)))
|
(define timeout 360)))
|
||||||
|
|
|
@ -13,7 +13,3 @@
|
||||||
(see-full-rectangle 3 2:rectangle)
|
(see-full-rectangle 3 2:rectangle)
|
||||||
|
|
||||||
(see-full-rectangle 3 1:rectangle)
|
(see-full-rectangle 3 1:rectangle)
|
||||||
|
|
||||||
(module+ test
|
|
||||||
(module config info
|
|
||||||
(define lock-name "gui")))
|
|
||||||
|
|
|
@ -6,7 +6,3 @@
|
||||||
(on-tick (lambda (w) (make-bundle (add1 w) '() '())) 1/28 3)
|
(on-tick (lambda (w) (make-bundle (add1 w) '() '())) 1/28 3)
|
||||||
(on-msg (lambda (w sender msg) (make-bundle w '() '())))
|
(on-msg (lambda (w sender msg) (make-bundle w '() '())))
|
||||||
(on-new cons))
|
(on-new cons))
|
||||||
|
|
||||||
(module+ test
|
|
||||||
(module config info
|
|
||||||
(define lock-name "gui")))
|
|
||||||
|
|
|
@ -19,7 +19,3 @@
|
||||||
(stop-when zero?))
|
(stop-when zero?))
|
||||||
|
|
||||||
(printf "done\n")
|
(printf "done\n")
|
||||||
|
|
||||||
(module+ test
|
|
||||||
(module config info
|
|
||||||
(define lock-name "gui")))
|
|
||||||
|
|
|
@ -17,4 +17,6 @@
|
||||||
(stop-when (λ (l) (>= (length l) 2)))))
|
(stop-when (λ (l) (>= (length l) 2)))))
|
||||||
(define *color 'blue)
|
(define *color 'blue)
|
||||||
|
|
||||||
(check-equal? (main) (begin (set! *color 'red) (main)))
|
(check-equal? (main) (begin (set! *color 'red) (main)))
|
||||||
|
|
||||||
|
(module test racket/base)
|
||||||
|
|
|
@ -32,7 +32,3 @@
|
||||||
|
|
||||||
(unless (image=? (crop 0 0 100 100 i) j)
|
(unless (image=? (crop 0 0 100 100 i) j)
|
||||||
(eprintf "this test needs to be revised -- the way 'world' writes images adds an extra pixel -- think! \n"))
|
(eprintf "this test needs to be revised -- the way 'world' writes images adds an extra pixel -- think! \n"))
|
||||||
|
|
||||||
(module+ test
|
|
||||||
(module config info
|
|
||||||
(define lock-name "gui")))
|
|
||||||
|
|
|
@ -39,7 +39,3 @@
|
||||||
|
|
||||||
(create-n-images 3 3 "images3/")
|
(create-n-images 3 3 "images3/")
|
||||||
(create-n-images 0 0 "images0/")
|
(create-n-images 0 0 "images0/")
|
||||||
|
|
||||||
(module+ test
|
|
||||||
(module config info
|
|
||||||
(define lock-name "gui")))
|
|
||||||
|
|
|
@ -28,7 +28,3 @@
|
||||||
1
|
1
|
||||||
n)))))
|
n)))))
|
||||||
(main 1)
|
(main 1)
|
||||||
|
|
||||||
(module+ test
|
|
||||||
(module config info
|
|
||||||
(define lock-name "gui")))
|
|
||||||
|
|
|
@ -54,5 +54,4 @@
|
||||||
|
|
||||||
(module+ test
|
(module+ test
|
||||||
(module config info
|
(module config info
|
||||||
(define lock-name "gui")
|
|
||||||
(define random? #t)))
|
(define random? #t)))
|
||||||
|
|
|
@ -13,7 +13,3 @@
|
||||||
(uni:on-tick add1)
|
(uni:on-tick add1)
|
||||||
(uni:stop-when (lambda (y) (>= y 100)))
|
(uni:stop-when (lambda (y) (>= y 100)))
|
||||||
(uni:on-draw create-UFO-scene))
|
(uni:on-draw create-UFO-scene))
|
||||||
|
|
||||||
(module+ test
|
|
||||||
(module config info
|
|
||||||
(define lock-name "gui")))
|
|
||||||
|
|
|
@ -45,7 +45,3 @@
|
||||||
(launch-many-worlds (u) (w "one") (w "two") (w "three")))
|
(launch-many-worlds (u) (w "one") (w "two") (w "three")))
|
||||||
|
|
||||||
; (require (submod "." drop-bad))
|
; (require (submod "." drop-bad))
|
||||||
|
|
||||||
(module+ test
|
|
||||||
(module config info
|
|
||||||
(define lock-name "gui")))
|
|
||||||
|
|
|
@ -25,7 +25,3 @@
|
||||||
(test (big-bang (stop-with 0) (on-tick add1) (to-draw (draw ""))) 0 "")
|
(test (big-bang (stop-with 0) (on-tick add1) (to-draw (draw ""))) 0 "")
|
||||||
|
|
||||||
(test (big-bang 0 (on-draw (draw 0)) (stop-when zero? (draw 1))) 0 "1")
|
(test (big-bang 0 (on-draw (draw 0)) (stop-when zero? (draw 1))) 0 "1")
|
||||||
|
|
||||||
(module+ test
|
|
||||||
(module config info
|
|
||||||
(define lock-name "gui")))
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user