Solaris portability fixes
authorDanek Duvall <danek.duvall@sun.com>
Fri, 18 Aug 2006 10:24:04 -0700
changeset 2932 d77022db1bca
parent 2931 0843bd53dcff
child 2942 f4fc0575e8fa
Solaris portability fixes
tests/test-bisect
tests/test-extdiff
--- 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