logo

utils-std

Collection of commonly available Unix tools
commit: 4718adb2161ae83f670ed13986bc2427d1fcf444
parent 688e5501d5277a0f2dc5ef4e34ec883ff1d4ae74
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Mon,  8 Jul 2024 17:22:27 +0200

test-cmd/tap.sh: skip t_file when mktemp(1) is unavailable

Diffstat:

Mtest-cmd/tap.sh3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/test-cmd/tap.sh b/test-cmd/tap.sh @@ -73,6 +73,9 @@ t_file() exp_ret=0 file="${3?}" + command -v mktemp >/dev/null 2>/dev/null || \ + skip $1 "t_file requires mktemp(1)" + count=$((count+1)) out="$(mktemp)" "${target?}" $2 2>&1 >"$out"