summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/nft-f/0003rollback_jump_0
diff options
context:
space:
mode:
authorArturo Borrero <arturo.borrero.glez@gmail.com>2016-04-14 21:47:05 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2016-04-15 12:55:58 +0200
commitc30fc3d731b711847fce7910e95d1c217886cb09 (patch)
treec37564214ed93d1a33f786b22c12f519dac8fa8a /tests/shell/testcases/nft-f/0003rollback_jump_0
parentf9feca7d4029ed5af9e392cab3db93a5db0aa33f (diff)
tests/shell: delete tempfile failover in testcases
It seems both Debian/Fedora (and derivates) contains mktemp (from the coreutils package) so it makes no sense to have this failover, which looks buggy also. 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/testcases/nft-f/0003rollback_jump_0')
-rwxr-xr-xtests/shell/testcases/nft-f/0003rollback_jump_08
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/shell/testcases/nft-f/0003rollback_jump_0 b/tests/shell/testcases/nft-f/0003rollback_jump_0
index b3ebe949..567a70e7 100755
--- a/tests/shell/testcases/nft-f/0003rollback_jump_0
+++ b/tests/shell/testcases/nft-f/0003rollback_jump_0
@@ -3,13 +3,7 @@
# test a kernel rollback operation
# fail reason: invalid jump
-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