X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fregression%2Ftools%2Fhealth%2Ftest_thread_ok;h=663b7e4cb2eab1bf9bd1bb5ea7d9bb9a5f336c59;hb=f52a7d1581ec1e62d8563fdcd455fec39eeadb93;hp=dfc67cdcfedd2d35d3a0d6c4bcfee66c10c8be3c;hpb=4d513dce5d26cbc477a00b348beb537d01231cd9;p=lttng-tools.git diff --git a/tests/regression/tools/health/test_thread_ok b/tests/regression/tools/health/test_thread_ok index dfc67cdcf..663b7e4cb 100755 --- a/tests/regression/tools/health/test_thread_ok +++ b/tests/regression/tools/health/test_thread_ok @@ -1,20 +1,9 @@ #!/bin/bash # -# Copyright (C) - 2012 Christian Babeux -# Copyright (C) - 2014 Mathieu Desnoyers +# Copyright (C) 2012 Christian Babeux +# Copyright (C) 2014 Mathieu Desnoyers # -# This program is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License, version 2 only, as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for -# more details. -# -# You should have received a copy of the GNU General Public License along with -# this program; if not, write to the Free Software Foundation, Inc., 51 -# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# SPDX-License-Identifier: GPL-2.0-only TEST_DESC="Health check - Thread OK" @@ -121,10 +110,10 @@ plan_tests $NUM_TESTS print_test_banner "$TEST_DESC" -STDOUT_PATH=$(mktemp) -STDERR_PATH=$(mktemp) -TRACE_PATH=$(mktemp -d) -HEALTH_PATH=$(mktemp -d) +STDOUT_PATH=$(mktemp -t tmp.test_thread_ok_stdout_path.XXXXXX) +STDERR_PATH=$(mktemp -t tmp.test_thread_ok_stderr_path.XXXXXX) +TRACE_PATH=$(mktemp -d -t tmp.test_thread_ok_trace_path.XXXXXX) +HEALTH_PATH=$(mktemp -d -t tmp.test_thread_ok_trace_path.XXXXXX) # The manage kernel thread is only spawned if we are root if [ "$(id -u)" == "0" ]; then