don't just wait for the first log message; wait for the first

non-minor-gc log message
This commit is contained in:
Robby Findler 2013-11-09 09:17:56 -06:00
parent 914fa58c0b
commit fd68a247e5

View File

@ -241,7 +241,11 @@ This test checks:
(send (send p get-editor) get-text)]
[else #f])))))
(and str
(not (equal? str ""))
;; wait for a log message that doesn't look like a minor GC
(for/or ([l (in-lines (open-input-string str))])
(not (regexp-match? #rx"^GC: [0-9]*:min" l)))
str))))
(unless (regexp-match #rx"GC: [0-9]+:MAJ" logger-string)