diff options
author | Arturo Borrero <arturo.borrero.glez@gmail.com> | 2016-06-11 12:25:59 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-06-15 14:01:58 +0200 |
commit | 1a05ba4a8ab25af174363dac0f924494d48ae409 (patch) | |
tree | 3de5ec17fa6d35d5f9cc46c6b800a5ec7bd08819 /tests/shell | |
parent | f42e5100d2fa470c20fc2a0c87a0fcf3dae54661 (diff) |
tests: shell: cleanup tempfile handling in testcases/sets/cache_handling_0
It uses a bogus pattern which was cleaned up already in others testscases,
and this is a leftover.
Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
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 |