[PATCH] tests: unify test-race

Adrian Buehlmann adrian at cadifra.com
Mon Sep 13 12:22:05 CDT 2010


# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1284398300 -7200
# Node ID 728b69306658429848e97ec7b1df2c409b68a515
# Parent  07b277957539754b394cd628aea3f3aec8050016
tests: unify test-race

rename to test-dirstate-race.t while we're at it

diff --git a/tests/test-race b/tests/test-dirstate-race.t
old mode 100755
new mode 100644
rename from tests/test-race
rename to tests/test-dirstate-race.t
--- a/tests/test-race
+++ b/tests/test-dirstate-race.t
@@ -1,15 +1,33 @@
-#!/bin/sh
+  $ hg init
+  $ echo a > a
+  $ hg add a
+  $ hg commit -m test
 
-mkdir t
-cd t
-hg init
-echo a > a
-hg add a
-hg commit -m test
+Do we ever miss a sub-second change?:
 
-# 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
+  $ 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
+  M a
+  M a
+  M a
+  M a
+  M a
+  M a
+  M a
+  M a
+  M a
+  M a
+  M a
+  M a
+  M a
+  M a
+  M a
+  M a
+  M a
+  M a
+  M a
+  M a
+
diff --git a/tests/test-race.out b/tests/test-race.out
deleted file mode 100644
--- a/tests/test-race.out
+++ /dev/null
@@ -1,20 +0,0 @@
-M a
-M a
-M a
-M a
-M a
-M a
-M a
-M a
-M a
-M a
-M a
-M a
-M a
-M a
-M a
-M a
-M a
-M a
-M a
-M a


More information about the Mercurial-devel mailing list