Config-AutoConf
view release on metacpan or search on metacpan
t/02.compile.t view on Meta::CPAN
#include \"perl.h\"
#include \"XSUB.h\""
}
),
"Check struct regexp"
);
Config::AutoConf->write_config_h();
ok(-f "config.h", "default config.h created");
my $fsize;
ok($fsize = (stat("config.h"))[7], "config.h contains content");
$ac->write_config_h();
ok(-f "config.h", "default config.h created");
cmp_ok((stat("config.h"))[7], ">", $fsize, "2nd config.h is bigger than first (more checks made)");
my ($fh, $fbuf, $dbuf);
open($fh, "<", "config.h");
{ local $/; $fbuf = <$fh>; }
close($fh);
if ($] < 5.008)
{
require IO::String;
$fh = IO::String->new($dbuf);
( run in 0.461 second using v1.01-cache-2.11-cpan-49f99fa48dc )