@@ -418,14 +418,14 @@ test_declared_prereq () {
418418test_verify_prereq () {
419419 test -z " $test_prereq " ||
420420 expr > /dev/null " $test_prereq " : ' [A-Z0-9_,!]*$' ||
421- error " bug in the test script: '$test_prereq ' does not look like a prereq"
421+ BUG " '$test_prereq ' does not look like a prereq"
422422}
423423
424424test_expect_failure () {
425425 test_start_
426426 test " $# " = 3 && { test_prereq=$1 ; shift ; } || test_prereq=
427427 test " $# " = 2 ||
428- error " bug in the test script: not 2 or 3 parameters to test-expect-failure"
428+ BUG " not 2 or 3 parameters to test-expect-failure"
429429 test_verify_prereq
430430 export test_prereq
431431 if ! test_skip " $@ "
@@ -445,7 +445,7 @@ test_expect_success () {
445445 test_start_
446446 test " $# " = 3 && { test_prereq=$1 ; shift ; } || test_prereq=
447447 test " $# " = 2 ||
448- error " bug in the test script: not 2 or 3 parameters to test-expect-success"
448+ BUG " not 2 or 3 parameters to test-expect-success"
449449 test_verify_prereq
450450 export test_prereq
451451 if ! test_skip " $@ "
@@ -472,7 +472,7 @@ test_expect_success () {
472472test_external () {
473473 test " $# " = 4 && { test_prereq=$1 ; shift ; } || test_prereq=
474474 test " $# " = 3 ||
475- error >&5 " bug in the test script: not 3 or 4 parameters to test_external"
475+ BUG " not 3 or 4 parameters to test_external"
476476 descr=" $1 "
477477 shift
478478 test_verify_prereq
@@ -613,7 +613,7 @@ test_path_is_missing () {
613613test_line_count () {
614614 if test $# ! = 3
615615 then
616- error " bug in the test script: not 3 parameters to test_line_count"
616+ BUG " not 3 parameters to test_line_count"
617617 elif ! test $( wc -l < " $3 " ) " $1 " " $2 "
618618 then
619619 echo " test_line_count: line count for $3 !$1 $2 "
@@ -793,13 +793,12 @@ test_i18ngrep () {
793793 eval " last_arg=\$ {$# }"
794794
795795 test -f " $last_arg " ||
796- error " bug in the test script: test_i18ngrep requires a file" \
797- " to read as the last parameter"
796+ BUG " test_i18ngrep requires a file to read as the last parameter"
798797
799798 if test $# -lt 2 ||
800799 { test " x!" = " x$1 " && test $# -lt 3 ; }
801800 then
802- error " bug in the test script: too few parameters to test_i18ngrep"
801+ BUG " too few parameters to test_i18ngrep"
803802 fi
804803
805804 if test_have_prereq ! C_LOCALE_OUTPUT
@@ -885,7 +884,7 @@ test_seq () {
885884 case $# in
886885 1) set 1 " $@ " ;;
887886 2) ;;
888- * ) error " bug in the test script: not 1 or 2 parameters to test_seq" ;;
887+ * ) BUG " not 1 or 2 parameters to test_seq" ;;
889888 esac
890889 test_seq_counter__=$1
891890 while test " $test_seq_counter__ " -le " $2 "
@@ -923,7 +922,7 @@ test_when_finished () {
923922 # doing so on Bash is better than nothing (the test will
924923 # silently pass on other shells).
925924 test " ${BASH_SUBSHELL-0} " = 0 ||
926- error " bug in test script: test_when_finished does nothing in a subshell"
925+ BUG " test_when_finished does nothing in a subshell"
927926 test_cleanup=" { $*
928927 } && (exit \"\$ eval_ret\" ); eval_ret=\$ ?; $test_cleanup "
929928}
@@ -932,7 +931,7 @@ test_when_finished () {
932931# Usage: test_create_repo <directory>
933932test_create_repo () {
934933 test " $# " = 1 ||
935- error " bug in the test script: not 1 parameter to test-create-repo"
934+ BUG " not 1 parameter to test-create-repo"
936935 repo=" $1 "
937936 mkdir -p " $repo "
938937 (
@@ -1245,7 +1244,7 @@ test_oid_cache () {
12451244
12461245 if ! expr " $k " : ' [a-z0-9][a-z0-9]*$' > /dev/null
12471246 then
1248- error ' bug in the test script: bad hash algorithm'
1247+ BUG ' bad hash algorithm'
12491248 fi &&
12501249 eval " test_oid_${k} _$tag =\"\$ v\" "
12511250 done
@@ -1260,7 +1259,7 @@ test_oid () {
12601259 # key-hash pair, so exit with an error.
12611260 if eval " test -z \"\$ {$var +set}\" "
12621261 then
1263- error " bug in the test script: undefined key '$1 '" >&2
1262+ BUG " undefined key '$1 '"
12641263 fi &&
12651264 eval " printf '%s' \"\$ {$var }\" "
12661265}
0 commit comments