From 148519b7dc5a45ee73a85d39e4647099976be3b8 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Thu, 28 Jul 2005 16:48:37 +0200 Subject: [PATCH] [PATCH] support bc version 1.04 Test t6002 unnecessarily fails when bc is a bit older than average. Signed-off-by: Johannes.Schindelin Signed-off-by: Junio C Hamano --- t/t6002-rev-list-bisect.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/t/t6002-rev-list-bisect.sh b/t/t6002-rev-list-bisect.sh index 6a718208..99d86ae5 100755 --- a/t/t6002-rev-list-bisect.sh +++ b/t/t6002-rev-list-bisect.sh @@ -11,8 +11,12 @@ bc_expr() { bc <=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 } -- 2.11.0