Re: New reference implementation Per Bothner 30 Aug 2015 08:25 UTC

On 08/30/2015 10:06 AM, Taylan Ulrich Bayırlı/Kammer wrote:
> Per Bothner <xxxxxx@bothner.com> writes:
>> Your runner doesn't print anything until the very end.  I think
>> it is better to print out the results as you go, in case of some
>> uncaught error crashing the test.
>
> Hmm, for me it prints [PASS], [FAIL], etc. as I go.  Not sure what
> happened there.  Could it be some buffering on your side?

If you change:
     (format #t "[~a] ~a\n" result-kind-name label)))
to:
     (format #t "[~a] ~a~%" result-kind-name label)))
then the bufffering is avoided.  This is (newline)
on the standard output port causes a flush, but
(display "\n") doesn't.

An explicit flush-output-port might be preferable,
but i don't know how portable it is.  It isn't in R5RS,
but it is in both R6RS and R7RS.
--
	--Per Bothner
xxxxxx@bothner.com   http://per.bothner.com/