changeset 2932:d77022db1bca

Solaris portability fixes
author Danek Duvall <danek.duvall@sun.com>
date Fri, 18 Aug 2006 10:24:04 -0700
parents 0843bd53dcff
children f4fc0575e8fa
files tests/test-bisect tests/test-extdiff
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-bisect	Fri Aug 18 10:05:44 2006 -0700
+++ b/tests/test-bisect	Fri Aug 18 10:24:04 2006 -0700
@@ -17,7 +17,7 @@
     test $count -eq 0 && hg add
     hg ci -m "msg $count" -d "$count 0"
     echo % committed changeset $count
-    count=$(( $count + 1 ))
+    count=`expr $count + 1`
 done
 
 echo % log
--- a/tests/test-extdiff	Fri Aug 18 10:05:44 2006 -0700
+++ b/tests/test-extdiff	Fri Aug 18 10:24:04 2006 -0700
@@ -8,7 +8,11 @@
 cd a
 echo a > a
 hg add
-hg extdiff -o -Nr
+diff -N /dev/null /dev/null 2> /dev/null
+if [ $? -ne 0 ]; then
+	opt="-p gdiff"
+fi
+hg extdiff -o -Nr $opt
 
 echo "[extdiff]" >> $HGTMP/.hgrc
 echo "cmd.falabala=echo" >> $HGTMP/.hgrc