port: add support for BSD mktemp
[lttng-tools.git] / tests / regression / ust / multi-lib / test_multi_lib
index d66230ac89427893b52413382f5b3190f4e3cc33..4a96dd032f668f5cd066b30cf4c38747a6ae98bb 100755 (executable)
@@ -1,19 +1,8 @@
 #!/bin/bash
 #
-# Copyright (C) 2018 Francis Deslauriers <francis.deslauriers@efficios.com>
+# Copyright (C) 2018 Francis Deslauriers <francis.deslauriers@efficios.com>
 #
-# This library is free software; you can redistribute it and/or modify it under
-# the terms of the GNU Lesser General Public License as published by the Free
-# Software Foundation; version 2.1 of the License.
-#
-# This library 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 Lesser General Public License for more
-# details.
-#
-# You should have received a copy of the GNU Lesser General Public License
-# along with this library; if not, write to the Free Software Foundation, Inc.,
-# 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
+# SPDX-License-Identifier: LGPL-2.1-only
 
 TEST_DESC="UST - Dynamic loading and unloading of libraries"
 
@@ -195,7 +184,7 @@ test_upgrade_callsites_dlopen_dclose()
 test_event_field_comparison()
 {
        local event_name="multi:tp"
-       diag "Load mutliple events with slight variations in the field descriptions."
+       diag "Load multiple events with slight variations in the field descriptions."
 
        local library_prefix="libprobes_"
        local nb_libs=0
@@ -228,6 +217,8 @@ plan_tests $NUM_TESTS
 
 print_test_banner "$TEST_DESC"
 
+bail_out_if_no_babeltrace
+
 TESTS=(
        "test_dlopen_same_provider_name_same_event"
        "test_dlopen_same_provider_name_different_event"
@@ -245,7 +236,7 @@ start_lttng_sessiond
 
 while [ "$i" -lt "$TEST_COUNT" ]; do
 
-       TRACE_PATH=$(mktemp -d)
+       TRACE_PATH=$(mktemp -d -t tmp.test_multi_lib_ust_trace_path.XXXXXX)
 
        create_lttng_session_ok $SESSION_NAME $TRACE_PATH
 
This page took 0.025762 seconds and 4 git commands to generate.