summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2005-07-28 14:48:37 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-07-29 07:12:03 (GMT)
commit148519b7dc5a45ee73a85d39e4647099976be3b8 (patch)
tree247e0d845195ab1c1650fcdbdd0f0ead5fc3d61c
parentbd6bc56d4ebf04113657647e6d071e24ca708dad (diff)
downloadgit-148519b7dc5a45ee73a85d39e4647099976be3b8.zip
git-148519b7dc5a45ee73a85d39e4647099976be3b8.tar.gz
git-148519b7dc5a45ee73a85d39e4647099976be3b8.tar.bz2
[PATCH] support bc version 1.04
Test t6002 unnecessarily fails when bc is a bit older than average. Signed-off-by: Johannes.Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
-rwxr-xr-xt/t6002-rev-list-bisect.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/t/t6002-rev-list-bisect.sh b/t/t6002-rev-list-bisect.sh
index 6a71820..99d86ae 100755
--- a/t/t6002-rev-list-bisect.sh
+++ b/t/t6002-rev-list-bisect.sh
@@ -11,8 +11,12 @@ bc_expr()
{
bc <<EOF
scale=1
-define abs(x) { if (x>=0) { return x; } else { return -x; } }
-define floor(x) { save=scale; scale=0; result=x/1; scale=save; return result; }
+define abs(x) {
+ if (x>=0) { return (x); } else { return (-x); }
+}
+define floor(x) {
+ save=scale; scale=0; result=x/1; scale=save; return (result);
+}
$*
EOF
}