Skip to content

Commit

Permalink
when t is collected, the callbacks don't happen, which causes tests…
Browse files Browse the repository at this point in the history
… to fail

Thanks to @mflatt for idenitfying the fix
  • Loading branch information
rfindler committed Dec 29, 2023
1 parent 565ce18 commit ed9851a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gui-test/tests/gracket/wxme.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"test-editor-admin.rkt"
mred/private/wxme/keymap
mred/private/wxme/editor-snip
(for-syntax racket/base))
(for-syntax racket/base)
(only-in ffi/unsafe void/reference-sink))

(define wrong-cnt 0)
(define test-cnt 0)
Expand Down Expand Up @@ -305,7 +306,8 @@
(expect (and (pair? changes) (equal? (car changes) #f)) #t)
(expect (and (member named-style1 changes) #t) #t)
(expect (and (member named-style2 changes) #t) #t)
(set! changes '()))
(set! changes '())
(void/reference-sink t))

;; ----------------------------------------
;; Lines, positions, paragraphs
Expand Down

0 comments on commit ed9851a

Please sign in to comment.