X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=t%2Ft6002-rev-list-bisect.sh;h=99d86ae5aeb131a97fe3cf40545d7a3bd03f9590;hb=89ab859e9452cbc8f1f15afab52257e9b789c899;hp=a5e313b2f9812a75223df2b54af14383829e3e9a;hpb=28346d2d3c6e609a618c6c429d865e9d5d50b998;p=git.git diff --git a/t/t6002-rev-list-bisect.sh b/t/t6002-rev-list-bisect.sh index a5e313b2..99d86ae5 100755 --- a/t/t6002-rev-list-bisect.sh +++ b/t/t6002-rev-list-bisect.sh @@ -5,14 +5,18 @@ test_description='Tests git-rev-list --bisect functionality' . ./test-lib.sh -. ../t6000-lib.sh +. ../t6000lib.sh # t6xxx specific functions 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 }