diff options
Diffstat (limited to 'tests/shell/testcases/nft-f/0003rollback_jump_0')
-rwxr-xr-x | tests/shell/testcases/nft-f/0003rollback_jump_0 | 8 |
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 |