"Fossies" - the Fresh Open Source Software Archive

Member "perl-5.32.1/cpan/Test-Simple/t/Legacy/00test_harness_check.t" (18 Dec 2020, 764 Bytes) of package /linux/misc/perl-5.32.1.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Perl source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/usr/bin/perl -w
    2 
    3 # A test to make sure the new Test::Harness was installed properly.
    4 
    5 use Test::More;
    6 plan tests => 1;
    7 
    8 my $TH_Version = 2.03;
    9 
   10 require Test::Harness;
   11 unless( cmp_ok( eval $Test::Harness::VERSION, '>=', $TH_Version, "T::H version" ) ) {
   12     diag <<INSTRUCTIONS;
   13 
   14 Test::Simple/More/Builder has features which depend on a version of
   15 Test::Harness greater than $TH_Version.  You have $Test::Harness::VERSION.
   16 Please install a new version from CPAN.
   17 
   18 If you've already tried to upgrade Test::Harness and still get this
   19 message, the new version may be "shadowed" by the old.  Check the
   20 output of Test::Harness's "make install" for "## Differing version"
   21 messages.  You can delete the old version by running 
   22 "make install UNINST=1".
   23 
   24 INSTRUCTIONS
   25 }
   26