changeset 8721:2816239e0020

test-fncache: Use find instead of ls -R. Different platforms implement -R differently (and it produces unneccessarily verbose output in this case). find is just as good and more consistent. Unbreaks test on OpenBSD. Edited by pmezard: added 'sort' call
author Will Maier <willmaier@ml1.net>
date Thu, 04 Jun 2009 18:11:11 -0600
parents da1b93583855
children b4a1b9012d96
files tests/test-fncache tests/test-fncache.out
diffstat 2 files changed, 26 insertions(+), 36 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-fncache	Thu Jun 04 17:33:30 2009 -0600
+++ b/tests/test-fncache	Thu Jun 04 18:11:11 2009 -0600
@@ -56,7 +56,7 @@
 mkdir tst.d
 echo foo > tst.d/foo
 hg ci -Amfoo
-ls -R .hg
+find .hg | sort
 
 cd ..
 echo % non fncache repo
@@ -65,6 +65,6 @@
 mkdir tst.d
 echo foo > tst.d/Foo
 hg ci -Amfoo
-ls -R .hg
+find .hg | sort
 
 exit 0
--- a/tests/test-fncache.out	Thu Jun 04 17:33:30 2009 -0600
+++ b/tests/test-fncache.out	Thu Jun 04 18:11:11 2009 -0600
@@ -43,39 +43,29 @@
 (first damaged changeset appears to be 0)
 % non store repo
 adding tst.d/foo
-.hg:
-00changelog.i
-00manifest.i
-data
-dirstate
-requires
-undo
-undo.branch
-undo.dirstate
-
-.hg/data:
-tst.d.hg
-
-.hg/data/tst.d.hg:
-foo.i
+.hg
+.hg/00changelog.i
+.hg/00manifest.i
+.hg/data
+.hg/data/tst.d.hg
+.hg/data/tst.d.hg/foo.i
+.hg/dirstate
+.hg/requires
+.hg/undo
+.hg/undo.branch
+.hg/undo.dirstate
 % non fncache repo
 adding tst.d/Foo
-.hg:
-00changelog.i
-dirstate
-requires
-store
-undo.branch
-undo.dirstate
-
-.hg/store:
-00changelog.i
-00manifest.i
-data
-undo
-
-.hg/store/data:
-tst.d.hg
-
-.hg/store/data/tst.d.hg:
-_foo.i
+.hg
+.hg/00changelog.i
+.hg/dirstate
+.hg/requires
+.hg/store
+.hg/store/00changelog.i
+.hg/store/00manifest.i
+.hg/store/data
+.hg/store/data/tst.d.hg
+.hg/store/data/tst.d.hg/_foo.i
+.hg/store/undo
+.hg/undo.branch
+.hg/undo.dirstate