10 # use Test::NoWarnings, if available
13 if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
15 plan tests => 2 + $extra ;
17 use_ok('Compress::Zlib', 2) ;
20 # Check zlib_version and ZLIB_VERSION are the same.
22 my $zlib_h = ZLIB_VERSION ;
23 my $libz = Compress::Zlib::zlib_version;
25 is($zlib_h, $libz, "ZLIB_VERSION ($zlib_h) matches Compress::Zlib::zlib_version")
28 The version of zlib.h does not match the version of libz
30 You have zlib.h version $zlib_h
31 and libz version $libz
33 You probably have two versions of zlib installed on your system.
34 Try removing the one you don't want to use and rebuild.