aboutsummaryrefslogtreecommitdiffstats
path: root/t/fatal.t
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-06-27 23:53:08 +0000
committerThierry Vignaud <tv@mageia.org>2012-06-27 23:53:08 +0000
commitf08fbba859b2c21b85c5aa7170c704271e0ca62d (patch)
treeca75f5b36ecd6d37a156068f141f7dca81155ce6 /t/fatal.t
parentf3a5346c94ceed8c28a10511db0b1019ec532971 (diff)
parent0f5e4ddc50cf8f93de30d8c10477fff5d9d99282 (diff)
downloadperl-URPM-f08fbba859b2c21b85c5aa7170c704271e0ca62d.tar
perl-URPM-f08fbba859b2c21b85c5aa7170c704271e0ca62d.tar.gz
perl-URPM-f08fbba859b2c21b85c5aa7170c704271e0ca62d.tar.bz2
perl-URPM-f08fbba859b2c21b85c5aa7170c704271e0ca62d.tar.xz
perl-URPM-f08fbba859b2c21b85c5aa7170c704271e0ca62d.zip
add new t/01setter-getter.t to MANIFEST
Diffstat (limited to 't/fatal.t')
-rw-r--r--t/fatal.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/fatal.t b/t/fatal.t
index 0cfeafa..4638983 100644
--- a/t/fatal.t
+++ b/t/fatal.t
@@ -4,7 +4,7 @@ use strict;
use Test::More tests => 8;
use URPM;
-my $u = new URPM;
+my $u = URPM->new;
eval { $u->parse_hdlist('non-existent'); };
like( $@, qr/^cannot open hdlist file non-existent/, 'fatal error on hdlist not found' );
@@ -13,7 +13,7 @@ eval { $u->parse_synthesis('non-existent'); };
like( $@, qr/^unable to read synthesis file non-existent/, 'fatal error on synthesis not found' );
is( $! + 0, $!{ENOENT}, '$! is ENOENT' );
-my $v = new URPM( nofatal => 1 );
+my $v = URPM->new( nofatal => 1 );
eval { $v->parse_hdlist('non-existent'); };
is( $@, '', 'no error on hdlist not found' );