From a8e017fedcae615576f61d28ac273449053f6f8b Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 14 Oct 2026 18:58:19 +0500 Subject: pollute the global namespace less --- lib/test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/test.sh') diff --git a/lib/test.sh b/lib/test.sh index 59e7ce6..7c5844b 100644 --- a/lib/test.sh +++ b/lib/test.sh @@ -6,13 +6,13 @@ test_should_fail= test_root_dir= -test_setup_global() { +_test_setup_global() { test_root_dir="$( mktemp -d )" # mktemp returns /var/..., which is actually in /private/var/... on macOS. test_root_dir="$( readlink -e -- "$test_root_dir" )" } -test_cleanup_global() { +_test_cleanup_global() { if [ "$( type -t test_cleanup )" == function ]; then test_cleanup || true fi -- cgit v1.3