Cleanup: tests: name all temporary files to better identify leakage
[lttng-tools.git] / tests / regression / tools / save-load / test_autoload
index 7ee5e9906a59d51f48f1946b1e0c0c157a8924ca..0fbfa49f1f346f4e84ac33f9205c21db9f6c7499 100755 (executable)
@@ -1,19 +1,8 @@
 #!/bin/bash
 #
-# Copyright (C) 2018 Anders Wallin <wallinux@gmail.com>
+# Copyright (C) 2018 Anders Wallin <wallinux@gmail.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="Auto load session(s)"
 
@@ -73,8 +62,8 @@ TESTS=(
 
 for fct_test in ${TESTS[@]};
 do
-       export LTTNG_HOME=$(mktemp -d)
-       export LTTNG_DIR=$(mktemp -d)
+       export LTTNG_HOME=$(mktemp --tmpdir -d tmp.test_lttng_home_dir.XXXXXX)
+       export LTTNG_DIR=$(mktemp --tmpdir -d tmp.test_lttng_dir.XXXXXX)
 
        ${fct_test}
        rm -rf $LTTNG_DIR
This page took 0.024184 seconds and 4 git commands to generate.