1use Test::Most; 2 3require_ok('Net::FreeDB'); 4 5my $freedb = new Net::FreeDB(); 6ok($freedb, 'Unable to create instance'); 7 8if ($ENV{HAVE_INTERNET}) { 9 my @log_lines = (); 10 ok(!$freedb->log(10, 'day')); 11 ok($freedb->error eq 'Permission denied.', "Error: actual error not the expected error"); 12} 13 14done_testing; 15