automake-patches
[Top][All Lists]
Advanced

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

[FYI] {test-protocols} tap: a minor simplification in the perl TAP drive


From: Stefano Lattarini
Subject: [FYI] {test-protocols} tap: a minor simplification in the perl TAP driver
Date: Wed, 17 Aug 2011 17:48:11 +0200

* lib/tap-driver.pl: The `--disable-hard-errors' option is a
no-op, so just ignore it and its argument.
---
 ChangeLog         |    6 ++++++
 lib/tap-driver.pl |    3 +--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 3fefbd3..571218b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2011-08-17  Stefano Lattarini  <address@hidden>
 
+       tap: a minor simplification in the perl TAP driver
+       * lib/tap-driver.pl: The `--disable-hard-errors' option is a
+       no-op, so just ignore it and its argument.
+
+2011-08-17  Stefano Lattarini  <address@hidden>
+
        parallel-tests: fix help screen for test driver scripts
        * lib/tap-driver.pl ($USAGE): The `--trs-file' option is mandatory
        too.
diff --git a/lib/tap-driver.pl b/lib/tap-driver.pl
index 6d42b22..ed99131 100755
--- a/lib/tap-driver.pl
+++ b/lib/tap-driver.pl
@@ -63,7 +63,6 @@ my $plan_seen = NO_PLAN;
 my %cfg = (
   "color-tests" => 0,
   "expect-failure" => 0,
-  "enable-hard-errors" => 1,
   "merge" => 0,
   "comments" => 0,
   "ignore-exit" => 0,
@@ -82,7 +81,7 @@ Getopt::Long::GetOptions (
     'trs-file=s' => \$trs_file,
     'color-tests=s'  => \&bool_opt,
     'expect-failure=s'  => \&bool_opt,
-    'enable-hard-errors=s' => \&bool_opt,
+    'enable-hard-errors=s' => sub {}, # No-op.
     'diagnostic-string=s' => \$diag_string,
     'comments' => sub { $cfg{"comments"} = 1; },
     'no-comments' => sub { $cfg{"comments"} = 0; },
-- 
1.7.2.3




reply via email to

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