Browse Source

[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>
maint
Johannes Schindelin 20 years ago committed by Junio C Hamano
parent
commit
148519b7dc
  1. 8
      t/t6002-rev-list-bisect.sh

8
t/t6002-rev-list-bisect.sh

@ -11,8 +11,12 @@ bc_expr()
{ {
bc <<EOF bc <<EOF
scale=1 scale=1
define abs(x) { if (x>=0) { return x; } else { return -x; } } define abs(x) {
define floor(x) { save=scale; scale=0; result=x/1; scale=save; return result; } if (x>=0) { return (x); } else { return (-x); }
}
define floor(x) {
save=scale; scale=0; result=x/1; scale=save; return (result);
}
$* $*
EOF EOF
} }

Loading…
Cancel
Save