X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Futils%2Ftap%2Ftap.sh;h=4b51106c013273aee268342734446f5c43f2aabe;hb=9f4a25d35d037cbb5d8aeb50f9e8fa10748a4d14;hp=2acec57d4dc46c6cffd6c6aba54d9b47e2241272;hpb=004b006c3c3717ea567756678550d150c662c7a2;p=lttng-tools.git diff --git a/tests/utils/tap/tap.sh b/tests/utils/tap/tap.sh index 2acec57d4..4b51106c0 100755 --- a/tests/utils/tap/tap.sh +++ b/tests/utils/tap/tap.sh @@ -2,19 +2,8 @@ # # Copyright 2010 Patrick LeBoutillier # -# 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 . - _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