Also, use `-t` option of mktemp so that temporary files are created in
the system's tmp directory (/tmp) instead of the current working
directory.
Change-Id: If27b7cc420a70033abc81f8f901521ea58a830bc
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2106
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Francis Deslauriers <francis.deslauriers@efficios.com>
-stdout=$(mktemp test_help_stdout.XXXXXX)
-stderr=$(mktemp test_help_stderr.XXXXXX)
+stdout=$(mktemp -t test_help_stdout.XXXXXX)
+stderr=$(mktemp -t test_help_stderr.XXXXXX)
# Return 0 if file "$1" exists and is empty, non-0 otherwise.
# Return 0 if file "$1" exists and is empty, non-0 otherwise.
is_empty "${stdout}"
ok $? "help with unknown component class plugin produces no output"
is_empty "${stdout}"
ok $? "help with unknown component class plugin produces no output"
+
+rm -f "${stdout}" "${stderr}"