X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Fregression%2Fust%2Fjava-jul%2Ftest_java_jul;h=90c1758e1131fabbf68ad5cba1e87bd1f353d207;hp=7adce28e76e31bb31c2617b6614157f4f9be7c6c;hb=HEAD;hpb=62fc05222117c446e8f48e906cf83ffccf6f385e diff --git a/tests/regression/ust/java-jul/test_java_jul b/tests/regression/ust/java-jul/test_java_jul index 7adce28e7..41e2656ff 100755 --- a/tests/regression/ust/java-jul/test_java_jul +++ b/tests/regression/ust/java-jul/test_java_jul @@ -1,19 +1,8 @@ #!/bin/bash # -# Copyright (C) - 2013 David Goulet +# Copyright (C) 2013 David Goulet # -# 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="Java JUL support" @@ -90,8 +79,8 @@ function enable_jul_filter_loglevel_only() function test_jul_before_start () { - local file_sync_after_first=$(mktemp -u) - local file_sync_before_last=$(mktemp -u) + local file_sync_after_first=$(mktemp -u -t "tmp.${FUNCNAME[0]}_sync_after_first.XXXXXX") + local file_sync_before_last=$(mktemp -u -t "tmp.${FUNCNAME[0]}_sync_before_last.XXXXXX") diag "Test JUL application BEFORE tracing starts" create_lttng_session_ok $SESSION_NAME $TRACE_PATH @@ -673,6 +662,8 @@ plan_tests $NUM_TESTS print_test_banner "$TEST_DESC" +bail_out_if_no_babeltrace + if [ ! -f "$TESTAPP_PATH.class" ]; then withapp=0 else @@ -705,7 +696,7 @@ skip $withapp "JUL support is needed. Skipping all tests." $NUM_TESTS || for fct_test in ${tests[@]}; do - TRACE_PATH=$(mktemp -d) + TRACE_PATH=$(mktemp -d -t tmp.test_java_jul_trace_path.XXXXXX) ${fct_test} if [ $? -ne 0 ]; then