Upgrade to Compress::Zlib 2.000_05
[p5sagit/p5-mst-13.2.git] / ext / Compress / Zlib / t / 01version.t
CommitLineData
f4c6fd49 1
642e522c 2use lib 't';
f4c6fd49 3use strict ;
8aa25532 4use warnings ;
f4c6fd49 5
642e522c 6use Test::More ;
f4c6fd49 7
642e522c 8BEGIN
9{
10 # use Test::NoWarnings, if available
11 my $extra = 0 ;
12 $extra = 1
13 if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
f4c6fd49 14
642e522c 15 plan tests => 2 + $extra ;
f4c6fd49 16
642e522c 17 use_ok('Compress::Zlib', 2) ;
f4c6fd49 18}
19
f4c6fd49 20# Check zlib_version and ZLIB_VERSION are the same.
642e522c 21
f4c6fd49 22my $zlib_h = ZLIB_VERSION ;
23my $libz = Compress::Zlib::zlib_version;
642e522c 24
25is($zlib_h, $libz, "ZLIB_VERSION ($zlib_h) matches Compress::Zlib::zlib_version")
26 or diag <<EOM;
27
28The version of zlib.h does not match the version of libz
29
30You have zlib.h version $zlib_h
31 and libz version $libz
32
33You probably have two versions of zlib installed on your system.
34Try removing the one you don't want to use and rebuild.
f4c6fd49 35EOM
36