tests: Drop plan_tests function, no longer used

Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie committed 2026-08-21 15:34:20 +00:00
1 parent eb240aa067
commit f0ce1311af
1 file changed
+1 -18
+1 -18
View File
@@ -42,28 +42,11 @@ if [ -e "$test_srcdir/installed-tests.sh" ]; then
. "$test_srcdir/installed-tests.sh"
fi
planned_tests=
test_number=0
plan_tests () {
{ { local BASH_XTRACEFD=3; } 2> /dev/null
if [ -n "$planned_tests" ]; then
echo "Bail out! plan_tests called more than once"
exit 1
fi
planned_tests="$1"
echo "1..$planned_tests"
} 3> /dev/null
}
done_testing () {
{ { local BASH_XTRACEFD=3; } 2> /dev/null
if [ -z "$planned_tests" ]; then
echo "1..$test_number"
elif [ "$planned_tests" != "$test_number" ]; then
echo "Bail out! Expected $planned_tests tests, but saw $test_number tests"
exit 1
fi
echo "1..$test_number"
echo "# Done testing"
} 3> /dev/null
}