File: 07-log.t

package info (click to toggle)
libnet-freedb-perl 0.10-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 312 kB
  • sloc: ansic: 896; perl: 336; makefile: 5
file content (14 lines) | stat: -rw-r--r-- 316 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use Test::Most;

require_ok('Net::FreeDB');

my $freedb = new Net::FreeDB();
ok($freedb, 'Unable to create instance');

if ($ENV{HAVE_INTERNET}) {
    my @log_lines = ();
    ok(!$freedb->log(10, 'day'));
    ok($freedb->error eq 'Permission denied.', "Error: actual error not the expected error");
}

done_testing;