diff options
| author | Russ Allbery <eagle@eyrie.org> | 2018-06-03 17:42:09 -0700 | 
|---|---|---|
| committer | Russ Allbery <eagle@eyrie.org> | 2018-06-03 17:42:09 -0700 | 
| commit | d476d6ac8f877d39ab05fee743dd242676d893a7 (patch) | |
| tree | 774bcc5eee10309b3f5603a1746600d232cf9cee /tests/tap | |
| parent | ccca962835b7be61baf1a06c547f607ea4973e07 (diff) | |
| parent | 9ab7e03e968734819a717354d4bc91295404fafd (diff) | |
Update upstream source from tag 'upstream/1.4'
Update to upstream version '1.4'
with Debian dir a36152f3f7d88b9e750815c6be2105ab8fbe8f5c
Diffstat (limited to 'tests/tap')
| -rw-r--r-- | tests/tap/libtap.sh | 4 | ||||
| -rw-r--r-- | tests/tap/macros.h | 2 | ||||
| -rw-r--r-- | tests/tap/perl/Test/RRA.pm | 4 | ||||
| -rw-r--r-- | tests/tap/perl/Test/RRA/Automake.pm | 2 | ||||
| -rw-r--r-- | tests/tap/perl/Test/RRA/Config.pm | 4 | ||||
| -rw-r--r-- | tests/tap/perl/Test/RRA/ModuleVersion.pm | 20 | 
6 files changed, 20 insertions, 16 deletions
| diff --git a/tests/tap/libtap.sh b/tests/tap/libtap.sh index 38181d9..1827a68 100644 --- a/tests/tap/libtap.sh +++ b/tests/tap/libtap.sh @@ -10,8 +10,8 @@  # <https://www.eyrie.org/~eagle/software/c-tap-harness/>.  #  # Written by Russ Allbery <eagle@eyrie.org> -# Copyright 2009, 2010, 2011, 2012, 2016 Russ Allbery <eagle@eyrie.org> -# Copyright 2006, 2007, 2008, 2013 +# Copyright 2009-2012, 2016 Russ Allbery <eagle@eyrie.org> +# Copyright 2006-2008, 2013  #     The Board of Trustees of the Leland Stanford Junior University  #  # Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/tests/tap/macros.h b/tests/tap/macros.h index 32ed815..cc6d104 100644 --- a/tests/tap/macros.h +++ b/tests/tap/macros.h @@ -8,7 +8,7 @@   * This file is part of C TAP Harness.  The current version plus supporting   * documentation is at <https://www.eyrie.org/~eagle/software/c-tap-harness/>.   * - * Copyright 2008, 2012, 2013, 2015 Russ Allbery <eagle@eyrie.org> + * Copyright 2008, 2012-2013, 2015 Russ Allbery <eagle@eyrie.org>   *   * Permission is hereby granted, free of charge, to any person obtaining a   * copy of this software and associated documentation files (the "Software"), diff --git a/tests/tap/perl/Test/RRA.pm b/tests/tap/perl/Test/RRA.pm index 807508c..3b2f584 100644 --- a/tests/tap/perl/Test/RRA.pm +++ b/tests/tap/perl/Test/RRA.pm @@ -246,7 +246,9 @@ Russ Allbery <eagle@eyrie.org>  =head1 COPYRIGHT AND LICENSE -Copyright 2013, 2014 The Board of Trustees of the Leland Stanford Junior +Copyright 2016 Russ Allbery <eagle@eyrie.org> + +Copyright 2013-2014 The Board of Trustees of the Leland Stanford Junior  University  Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/tests/tap/perl/Test/RRA/Automake.pm b/tests/tap/perl/Test/RRA/Automake.pm index e4db56c..69fff6a 100644 --- a/tests/tap/perl/Test/RRA/Automake.pm +++ b/tests/tap/perl/Test/RRA/Automake.pm @@ -451,7 +451,7 @@ Russ Allbery <eagle@eyrie.org>  =head1 COPYRIGHT AND LICENSE -Copyright 2014, 2015, 2018 Russ Allbery <eagle@eyrie.org> +Copyright 2014-2015, 2018 Russ Allbery <eagle@eyrie.org>  Copyright 2013 The Board of Trustees of the Leland Stanford Junior University diff --git a/tests/tap/perl/Test/RRA/Config.pm b/tests/tap/perl/Test/RRA/Config.pm index 7cb0916..40641f1 100644 --- a/tests/tap/perl/Test/RRA/Config.pm +++ b/tests/tap/perl/Test/RRA/Config.pm @@ -187,9 +187,9 @@ Russ Allbery <eagle@eyrie.org>  =head1 COPYRIGHT AND LICENSE -Copyright 2015, 2016 Russ Allbery <eagle@eyrie.org> +Copyright 2015-2016 Russ Allbery <eagle@eyrie.org> -Copyright 2013, 2014 The Board of Trustees of the Leland Stanford Junior +Copyright 2013-2014 The Board of Trustees of the Leland Stanford Junior  University  Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/tests/tap/perl/Test/RRA/ModuleVersion.pm b/tests/tap/perl/Test/RRA/ModuleVersion.pm index 49acac4..8b6dba2 100644 --- a/tests/tap/perl/Test/RRA/ModuleVersion.pm +++ b/tests/tap/perl/Test/RRA/ModuleVersion.pm @@ -129,21 +129,23 @@ sub _module_version {  #  Throws: Text exception on I/O failure or inability to find version  sub _update_module_version {      my ($file, $version) = @_; -    open(my $in, q{<}, $file) or die "$0: cannot open $file: $!\n"; -    open(my $out, q{>}, "$file.new") -      or die "$0: cannot create $file.new: $!\n"; -    # If the version starts with v, use it without quotes.  Otherwise, quote -    # it to prevent removal of trailing zeroes. -    if ($version !~ m{ \A v }xms) { -        $version = "'$version'"; +    # The old-style syntax may require different quoting.  If the version +    # starts with v, use it without quotes.  Otherwise, quote it to prevent +    # removal of trailing zeroes. +    my $old_version = $version; +    if ($old_version !~ m{ \A v }xms) { +        $old_version = "'$old_version'";      }      # Scan for the version and replace it. +    open(my $in, q{<}, $file) or die "$0: cannot open $file: $!\n"; +    open(my $out, q{>}, "$file.new") +      or die "$0: cannot create $file.new: $!\n";    SCAN:      while (defined(my $line = <$in>)) {          if (   $line =~ s{ $REGEX_VERSION_PACKAGE }{$1$version$3}xms -            || $line =~ s{ $REGEX_VERSION_OLD     }{$1$version$3}xms) +            || $line =~ s{ $REGEX_VERSION_OLD     }{$1$old_version$3}xms)          {              print {$out} $line or die "$0: cannot write to $file.new: $!\n";              last SCAN; @@ -267,7 +269,7 @@ Russ Allbery <eagle@eyrie.org>  =head1 COPYRIGHT AND LICENSE -Copyright 2016 Russ Allbery <eagle@eyrie.org> +Copyright 2016, 2018 Russ Allbery <eagle@eyrie.org>  Permission is hereby granted, free of charge, to any person obtaining a copy  of this software and associated documentation files (the "Software"), to deal | 
