4 @INC = ("../lib", "lib/compress");
8 use lib qw(t t/compress);
16 # use Test::NoWarnings, if available
19 if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 };
21 plan tests => 2 + $extra ;
23 use_ok('Compress::Raw::Zlib', 2) ;
26 # Check zlib_version and ZLIB_VERSION are the same.
29 skip "TEST_SKIP_VERSION_CHECK is set", 1
30 if $ENV{TEST_SKIP_VERSION_CHECK};
31 my $zlib_h = ZLIB_VERSION ;
32 my $libz = Compress::Raw::Zlib::zlib_version;
34 is($zlib_h, $libz, "ZLIB_VERSION ($zlib_h) matches Compress::Raw::Zlib::zlib_version")
37 The version of zlib.h does not match the version of libz
39 You have zlib.h version $zlib_h
40 and libz version $libz
42 You probably have two versions of zlib installed on your system.
43 Try removing the one you don't want to use and rebuild.