tests: sync tests/utils/tap with Babeltrace repository
[lttng-tools.git] / tests / utils / tap / tap.sh
index 2acec57d4dc46c6cffd6c6aba54d9b47e2241272..4b51106c013273aee268342734446f5c43f2aabe 100755 (executable)
@@ -2,19 +2,8 @@
 #
 # Copyright 2010 Patrick LeBoutillier <patrick.leboutillier@gmail.com>
 #
-#    This program is free software: you can redistribute it and/or modify
-#    it under the terms of the GNU General Public License as published by
-#    the Free Software Foundation, either version 3 of the License, or
-#    (at your option) any later version.
+# SPDX-License-Identifier: GPL-3.0-or-later
 #
-#    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, see <http://www.gnu.org/licenses/>.
-
 
 _version='1.01'
 
@@ -392,6 +381,11 @@ BAIL_OUT(){
 _cleanup(){
     local rc=0
 
+    if (( _plan_set == 0 )) ; then
+        diag "Looks like your test died before it could output anything."
+        return $rc
+    fi
+
     if (( _test_died != 0 )) ; then
         diag "Looks like your test died just after $_executed_tests."
         return $rc
This page took 0.023529 seconds and 4 git commands to generate.