test suite: fix timezone problems and port collision problem
authormpm@selenic.com
Thu, 16 Jun 2005 08:37:15 -0800
changeset 382 37249c522770efa58ca95871c0362ab871b0c1e9
parent 381 024ee0f8722ac970186170c74d2e884141c17a8e
child 383 4862a134e2c2516f09324d12a0036c073b190ada
push id1
push usergszorc@mozilla.com
push dateWed, 18 Mar 2015 16:34:57 +0000
test suite: fix timezone problems and port collision problem -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 test suite: fix timezone problems and port collision problem manifest hash: 44652133f49c24679b289c0250eb591682225c54 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCsaq7ywK+sNU5EO8RAluQAKCSuUGge7bQPbWbQoIfWETDFRibNwCgs12e /TSLCPJ0aHvqttMhJSaYOSU= =5OYO -----END PGP SIGNATURE-----
tests/run-tests
tests/test-basic.out
tests/test-copy.out
tests/test-pull
tests/test-undo.out
tests/test-up-local-change.out
--- a/tests/run-tests
+++ b/tests/run-tests
@@ -3,16 +3,17 @@
 set -e
 
 tests=0
 failed=0
 H=$PWD
 
 function run_one
 {
+    export TZ=GMT
     D=`mktemp -d`
     if [ "$D" == "" ] ; then
 	echo mktemp failed!
     fi
 
     cd $D
     fail=0
 
--- a/tests/test-basic.out
+++ b/tests/test-basic.out
@@ -2,17 +2,17 @@
 + cd t
 + hg init
 + echo a
 + hg add a
 + hg commit -t test -u test -d '0 0'
 + hg history
 changeset:   0:acb14030fe0a21b60322c440ad2d20cf7685a376
 user:        test
-date:        Wed Dec 31 16:00:00 1969
+date:        Thu Jan  1 00:00:00 1970
 summary:     test
 
 + hg manifest
 b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 644 a
 + hg cat a
 a
 + hg verify
 checking changesets
--- a/tests/test-copy.out
+++ b/tests/test-copy.out
@@ -10,29 +10,29 @@
 A b
 ? .out
 + hg -d commit -t 2 -u test -d '0 0'
 b
  b: copy a:b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3
 + hg history
 changeset:   1:3b5b84850bbed12e8ff8c1b87b32dc93c59ae6d8
 user:        test
-date:        Wed Dec 31 16:00:00 1969
+date:        Thu Jan  1 00:00:00 1970
 summary:     2
 
 changeset:   0:c19d34741b0a4ced8e4ba74bb834597d5193851e
 user:        test
-date:        Wed Dec 31 16:00:00 1969
+date:        Thu Jan  1 00:00:00 1970
 summary:     1
 
 + hg log a
 revision:    0:b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3
 changeset:   0:c19d34741b0a4ced8e4ba74bb834597d5193851e
 user:        test
-date:        Wed Dec 31 16:00:00 1969
+date:        Thu Jan  1 00:00:00 1970
 summary:     1
 
 + hexdump -C .hg/data/b.d
 00000000  75 01 0a 63 6f 70 79 72  65 76 3a 20 62 37 38 39  |u..copyrev: b789|
 00000010  66 64 64 39 36 64 63 32  66 33 62 64 32 32 39 63  |fdd96dc2f3bd229c|
 00000020  31 64 64 38 65 65 64 66  30 66 63 36 30 65 32 62  |1dd8eedf0fc60e2b|
 00000030  36 38 65 33 0a 63 6f 70  79 3a 20 61 0a 01 0a 61  |68e3.copy: a...a|
 00000040  0a                                                |.|
--- a/tests/test-pull
+++ b/tests/test-pull
@@ -4,21 +4,21 @@ set -e
 
 mkdir test
 cd test
 echo foo>foo
 hg init
 hg addremove
 hg commit -t "1"
 hg verify
-hg serve 2>/dev/null &
+hg serve -p 20059 2>/dev/null &
 C=$!
 cd ..
 
 mkdir copy
 cd copy
-hg init http://localhost:8000/
+hg init http://localhost:20059/
 hg verify
 hg co
 cat foo
 hg manifest
 
 kill $C
--- a/tests/test-undo.out
+++ b/tests/test-undo.out
@@ -8,17 +8,17 @@
 checking changesets
 checking manifests
 crosschecking files in changesets and manifests
 checking files
 1 files, 1 changesets, 1 total revisions
 + hg parents
 changeset:   0:acb14030fe0a21b60322c440ad2d20cf7685a376
 user:        test
-date:        Wed Dec 31 16:00:00 1969
+date:        Thu Jan  1 00:00:00 1970
 summary:     test
 
 + hg status
 + hg undo
 attempting to rollback last transaction
 + hg verify
 checking changesets
 checking manifests
--- a/tests/test-up-local-change.out
+++ b/tests/test-up-local-change.out
@@ -36,32 +36,32 @@ merging a
 resolving a
 file a: other d730145abbf9 ancestor b789fdd96dc2
 + hg -d up -m
 resolving manifests
  ancestor 1165e8bd193e local 1165e8bd193e remote 1165e8bd193e
 + hg parents
 changeset:   1:1e71731e6fbb5b35fae293120dea6964371c13c6
 user:        test
-date:        Wed Dec 31 16:00:00 1969
+date:        Thu Jan  1 00:00:00 1970
 summary:     2
 
 + hg -v history
 changeset:   1:1e71731e6fbb5b35fae293120dea6964371c13c6
 manifest:    1:1165e8bd193e17ad7d321d846fcf27ff3f412758
 user:        test
-date:        Wed Dec 31 16:00:00 1969
+date:        Thu Jan  1 00:00:00 1970
 files:       a b
 description:
 2
 
 changeset:   0:c19d34741b0a4ced8e4ba74bb834597d5193851e
 manifest:    0:a0c8bcbbb45c63b90b70ad007bf38961f64f2af0
 user:        test
-date:        Wed Dec 31 16:00:00 1969
+date:        Thu Jan  1 00:00:00 1970
 files:       a
 description:
 1
 
 + hg diff
 + sed 's/\(\(---\|+++\).*\)\t.*/\1/'
 --- a/a
 +++ b/a