test: ensure temporary directory outside source tree
authorPeter Wu <peter@lekensteyn.nl>
Mon, 27 Jun 2016 22:34:07 +0000 (00:34 +0200)
committerPeter Wu <peter@lekensteyn.nl>
Mon, 27 Jun 2016 22:42:01 +0000 (22:42 +0000)
commit9b91e64fee7dfdbeef3d8602a8af6c8d0d8a788c
tree26ebcfa797104782ef1e4b1532266919d7abdd27
parente69194ae6513aa0bbf2728df09ec9133ae379714
test: ensure temporary directory outside source tree

The whole point of using mktemp is to get a temporary directory outside
the source tree. Commit v2.1.0rc0-1027-ge01f8fb tried to fix the
invocation for *BSD (including OS X), but by adding a template it
dropped the implicit --tmpdir option for GNU mktemp on Linux..

Use the GNU mktemp invocation and if it fails (for example, because a
template is expected for BSD/OS X), provide a template.

Change-Id: I77bbc7dc2045e4fa756e102afa080860b0857713
Reviewed-on: https://code.wireshark.org/review/16178
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
test/test.sh