From 148519b7dc5a45ee73a85d39e4647099976be3b8 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Thu, 28 Jul 2005 16:48:37 +0200 Subject: [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 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 <=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 } -- cgit v0.10.2-6-g49f6