tests/test-race
author Brendan Cully <brendan@kublai.com>
Fri, 19 Feb 2010 16:50:47 -0800
branchstable
changeset 10514 1426b4807fc8
parent 6327 6d952dc2abc9
permissions -rwxr-xr-x
zeroconf: suppress traceback during shutdown If the read thred is in select when the main thread is in close, the main thread may close the socket between select and read, generating a noisy traceback. This can be ignored if the shutdown flag is set.

#!/bin/sh

mkdir t
cd t
hg init
echo a > a
hg add a
hg commit -m test

# do we ever miss a sub-second change?
for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do
    hg co -qC 0
    echo b > a
    hg st
done