t1200: fix a timing dependent error
authorNanako Shiraishi <nanako3@lavabit.com>
Tue, 24 Nov 2009 23:08:08 +0000 (08:08 +0900)
committerJunio C Hamano <gitster@pobox.com>
Wed, 25 Nov 2009 08:00:32 +0000 (00:00 -0800)
commit5d166ccb89faadb7ce5f36d2e33abbd7bb103117
tree7c1c61306052e75afc249a04a6199f4f7e5b8310
parentba2c7476882ea56fcad298ef195b538ed7a7ad32
t1200: fix a timing dependent error

The fourth test of show-branch in t1200 test was failing but only
sometimes. It only failed when two commits created in an earlier
test had different timestamps. When they were created within the
same second, the actual output matched the expected output.

Fix this by using test_tick to force reliable timestamps and update
the expected output so it does not to depend on the commits made in
the same sacond.

Signed-off-by: Nanako Shiraishi <nanako3@lavabit.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/gitcore-tutorial.txt
t/t1200-tutorial.sh