[plt-scheme] Flushing the log file in SRFI-64

From: Chongkai Zhu (czhu at cs.utah.edu)
Date: Mon Jul 28 19:54:37 EDT 2008

Thanks. I'll add that. You might want to contact the SRFI author, or 
SRFI 64 maillist on that.

Chongkai

Alan Watson wrote:
> I suggest flushing the log file in test-on-group-end-simple in 
> SRFI-64. At the moment, the log file only seems to be written when the 
> scheme VM exits (e.g., one closes the file containing the test suite 
> in DrScheme).
>
> Regards,
>
> Alan
>
> --- collects/srfi/64/testing.ss.orig    2008-07-28 16:23:54.000000000 
> -0500
> +++ collects/srfi/64/testing.ss    2008-07-28 16:32:47.000000000 -0500
> @@ -257,7 +257,8 @@
>        (when (output-port? log)
>          (display "Group end: " log)
>          (display (car (test-runner-group-stack runner)) log)
> -        (newline log)))
> +        (newline log)
> +        (flush-output log)))
>      #f)
>
>    (define (%test-on-bad-count-write runner count expected-count port)
>



Posted on the users mailing list.