automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[FYI] {tap-testsuite-work} test defs: fix bug in TAP version of `skip_al


From: Stefano Lattarini
Subject: [FYI] {tap-testsuite-work} test defs: fix bug in TAP version of `skip_all_'
Date: Mon, 8 Aug 2011 15:47:20 +0200
User-agent: KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; )

* tests/tap-functions (skip_all_): Set `$have_tap_plan_' to "yes"
when called, so that the exit trap won't write another TAP plan.
---
 ChangeLog              |    6 ++++++
 tests/tap-functions.sh |    1 +
 2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 55179a0..ad1d3f5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2011-08-08  Stefano Lattarini  <address@hidden>
 
+       test defs: fix bug in TAP version of `skip_all_'
+       * tests/tap-functions (skip_all_): Set `$have_tap_plan_' to "yes"
+       when called, so that the exit trap won't write another TAP plan.
+
+2011-08-08  Stefano Lattarini  <address@hidden>
+
        test defs: fix skip directives to work also with TAP-based tests
        * test/defs: Use `skip_all_', not `skip_', to issue a skip of the
        whole calling test script.
diff --git a/tests/tap-functions.sh b/tests/tap-functions.sh
index d685c18..5cd6c1a 100644
--- a/tests/tap-functions.sh
+++ b/tests/tap-functions.sh
@@ -200,6 +200,7 @@ xpass_ ()
 skip_all_ ()
 {
   echo "1..0 # SKIP" ${1+"$@"}
+  have_tap_plan_=yes
   Exit 0
 }
 
-- 
1.7.2.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]