Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Only enable 'trap' for new enough harnesses.
The 'trap' option was added to TAP::Harness version 3.22. Attempting to set it
on earlier versions is a fatal error, and aborts testing. Hence pass
argument conditionally, based on $TAP::Harness::VERSION.

Signed-off-by: Moritz Lenz <moritz@faui2k3.org>
  • Loading branch information
nwc10 authored and moritz committed Sep 27, 2015
1 parent 2b04b50 commit 3813a26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/harness
Expand Up @@ -124,7 +124,7 @@ if (eval "require $tap_harness_class;") {
jobs => $jobs,
ignore_exit => 1,
merge => 1,
trap => 1,
$TAP::Harness::VERSION > 3.21 ? (trap => 1) : (),
$archive ? ( archive => $archive ) : (),
$extra_properties ? ( extra_properties => $extra_properties ) : (),
);
Expand Down

0 comments on commit 3813a26

Please sign in to comment.