aboutsummaryrefslogtreecommitdiffstats
path: root/t/synthesis.t
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-01-15 07:50:41 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-01-15 07:50:41 +0000
commitbe88fcbfd677d82f69ce79c7044ee854b0e4c8db (patch)
tree3bd3a99e190ea5db16e5487e6dba1e3126214fdf /t/synthesis.t
parent31d8f17a882de336a47b5b5a43b109a0e6bcb97e (diff)
downloadperl-URPM-be88fcbfd677d82f69ce79c7044ee854b0e4c8db.tar
perl-URPM-be88fcbfd677d82f69ce79c7044ee854b0e4c8db.tar.gz
perl-URPM-be88fcbfd677d82f69ce79c7044ee854b0e4c8db.tar.bz2
perl-URPM-be88fcbfd677d82f69ce79c7044ee854b0e4c8db.tar.xz
perl-URPM-be88fcbfd677d82f69ce79c7044ee854b0e4c8db.zip
work in directory "t"
Diffstat (limited to 't/synthesis.t')
-rw-r--r--t/synthesis.t5
1 files changed, 3 insertions, 2 deletions
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);