From be88fcbfd677d82f69ce79c7044ee854b0e4c8db Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 15 Jan 2007 07:50:41 +0000 Subject: work in directory "t" --- t/synthesis.t | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 't') diff --git a/t/synthesis.t b/t/synthesis.t index f44e769..a16d909 100644 --- a/t/synthesis.t +++ b/t/synthesis.t @@ -5,6 +5,7 @@ use warnings ; use Test::More tests => 88; use URPM; +chdir 't' if -d 't'; my $file1 = 'synthesis.sample.cz'; open my $f, "| gzip -9 >$file1"; @@ -24,10 +25,10 @@ ok($a); my ($first, $end); -($first, $end) = URPM->new->parse_synthesis('t/empty_synthesis.cz'); +($first, $end) = URPM->new->parse_synthesis('empty_synthesis.cz'); is("$first $end", "0 -1", 'parse empty synthesis'); -is(URPM->new->parse_synthesis('t/buggy_synthesis.cz'), undef, 'parse buggy synthesis'); +is(URPM->new->parse_synthesis('buggy_synthesis.cz'), undef, 'parse buggy synthesis'); ($first, $end) = $a->parse_synthesis($file1); ok($first == 0 && $end == 0); -- cgit v1.2.1