Skip to content
Tcl Source Code View Ticket
Login

View Ticket

chan-io-53.9 test is timing sensitive

Open2966493fffffffffffffffffffffffffffffffffCreated 17 years agoUpdated 17 years ago
Descriptionplain2010-03-09 14:36:05
Low prio, but just saw chan-io-53.9 test fail
when running `make test` on a busy machine.
Suspect this is because of a hard-coded timeout
value.  A test not sensitive to timing variations would
be better.
ferrieuxplain2010-03-10 05:30:31
Unless I'm misreading, io-chan-53.9 arranges for some IO to happen within 2 secs of the beginning, and timeouts after 5 secs. This is everything but a sensitive timing setup. I suspect a more worrying race condition in the [fcopy] machinery, though I cannot repro on Linux (neither threaded nor unthreaded) on a dual core with 4 processes busylooping...

Any details concerning your setup to help reproducing here ?

Upping prio, race conditions are bad.
dkfplain2010-03-10 06:08:32
I sometimes get weird behaviour (overall; not just Tcl) when the system is doing a lot of IO (e.g., paging out my browser...) so maybe that sort of thing is needed as well?
dgpplain2010-03-11 00:08:03
Can't repro this reliably and will not block for it.

In fact, I can't even repeat it.

One time this failed.  At the time I
had several builds in progress, so
I blamed the busy machine for the
failure.

I just tried to repro, and there was no
failure of this test, though other timing
sensitive test did fail (clock-33.[58]*).
Log in (anonymous is fine) to add a comment.