diff options
| author | Egor Tensin <egor@tensin.name> | 2026-10-14 18:58:19 +0500 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-10-14 18:58:19 +0500 |
| commit | a8e017fedcae615576f61d28ac273449053f6f8b (patch) | |
| tree | e21503439ca4715fa378780b373e3d38fced4f16 /lib/test.sh | |
| parent | README: update (diff) | |
| download | test-harness-0.2.0.tar.gz test-harness-0.2.0.zip | |
pollute the global namespace lessv0.2.0
Diffstat (limited to 'lib/test.sh')
| -rw-r--r-- | lib/test.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
