Skip to content

Commit

Permalink
Skip bluebox test unless racket-doc installed; fixes #738
Browse files Browse the repository at this point in the history
  • Loading branch information
greghendershott committed Jan 21, 2025
1 parent aaae3ef commit 8341533
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions racket/scribble.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,22 @@
[_ #f]))

(module+ test
;; This test succeeds on all Racket versions before and after 6.10.
;; I spent an hour installing 6.10 locally and exploring the problem
;; but so far have no clue. As neither 6.10 nor I are getting any
;; younger, I am choosing to ignore this, for now.
;;
;; Probably https://github.com/racket/drracket/issues/118
(when racket-newer-than-6.12
(check-equal? (identifier->bluebox #'list)
"(list v ...) -> list?\n v : any/c"))
(check-false (identifier->bluebox (datum->syntax #f (gensym)))))
(cond
;; racket-doc has an unfortunate dependency -- gui-lib -- meaning
;; it might not be installed on a headless server. See #738.
[(not (xref-binding->definition-tag (get-xref) #'cons 0))
(displayln "Skipping identifier->bluebox tests (racket-doc seemingly not installed).")]
[else
;; This test succeeds on all Racket versions before and after 6.10.
;; I spent an hour installing 6.10 locally and exploring the problem
;; but so far have no clue. As neither 6.10 nor I are getting any
;; younger, I am choosing to ignore this, for now.
;;
;; Probably https://github.com/racket/drracket/issues/118
(when racket-newer-than-6.12
(check-equal? (identifier->bluebox #'list)
"(list v ...) -> list?\n v : any/c"))
(check-false (identifier->bluebox (datum->syntax #f (gensym))))]))

;;; Documentation search

Expand Down

0 comments on commit 8341533

Please sign in to comment.