# HG changeset patch # User Mads Kiilerich # Date 1335137966 -7200 # Node ID 37e0872b5cedc557bb32c9616ba7265f07e441e2 # Parent 123f96c4d454c02bbdb0fb2569c6a9d831802155 tests: remove race in test-pull-pull-corruption.t The output from the background process was not always interleaved "correctly" with output from the foreground process. diff -r 123f96c4d454 -r 37e0872b5ced tests/test-pull-pull-corruption.t --- a/tests/test-pull-pull-corruption.t Mon Apr 23 01:39:26 2012 +0200 +++ b/tests/test-pull-pull-corruption.t Mon Apr 23 01:39:26 2012 +0200 @@ -37,26 +37,27 @@ start a pull... - $ hg pull ../source1 & + $ hg pull ../source1 > pull.out 2>&1 & ... and start another pull before the first one has finished $ sleep 1 - pulling from ../source1 - requesting all changes $ hg pull ../source2 2>/dev/null pulling from ../source2 - adding changesets - adding manifests - adding file changes - added 10 changesets with 10 changes to 1 files - (run 'hg update' to get a working copy) searching for changes adding changesets adding manifests adding file changes added 1 changesets with 1 changes to 1 files (+1 heads) (run 'hg heads' to see heads, 'hg merge' to merge) + $ cat pull.out + pulling from ../source1 + requesting all changes + adding changesets + adding manifests + adding file changes + added 10 changesets with 10 changes to 1 files + (run 'hg update' to get a working copy) see the result