diff options
Diffstat (limited to 'tests/shell')
-rwxr-xr-x | tests/shell/testcases/sets/cache_handling_0 | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/shell/testcases/sets/cache_handling_0 b/tests/shell/testcases/sets/cache_handling_0 index c79e0139..9a737695 100755 --- a/tests/shell/testcases/sets/cache_handling_0 +++ b/tests/shell/testcases/sets/cache_handling_0 @@ -1,12 +1,6 @@ #!/bin/bash -MKTEMP=$(which mktemp) -if [ -x $MKTEMP ] ; then - tmpfile=$(${MKTEMP}) -else - tmpfile=$(/tmp/${RANDOM}) -fi - +tmpfile=$(mktemp) if [ ! -w $tmpfile ] ; then echo "Failed to create tmp file" >&2 exit 0 |