From 6c18325266f5a1a03562e78f2e3205dafcaa82f3 Mon Sep 17 00:00:00 2001 From: Olivier Thauvin Date: Tue, 3 Jul 2007 16:43:17 +0000 Subject: - arch and platform return undef if arch is unspecified --- t/01history.t | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 't') diff --git a/t/01history.t b/t/01history.t index ef7e47a..f3db55c 100644 --- a/t/01history.t +++ b/t/01history.t @@ -17,6 +17,10 @@ foreach my $path (@testdpath) { ); ok($dconf->load(), "can load $path"); ok($dconf->listmedia(), "can list media"); - ok($dconf->getvalue(undef, "arch"), "can get arch"); - like($dconf->getvalue(undef, "platform"), '/^[^-]*-(mandriva|mandrake)-linux-gnu$/', "can get arch"); + SKIP: { + my $arch = $dconf->getvalue(undef, "arch"); + skip "undefined arch for in case", 2 unless(defined($arch)); + like($arch, '/.+/', "can get arch"); + like($dconf->getvalue(undef, "platform"), "/^$arch" . '-(mandriva|mandrake)-linux-gnu$/', "can get arch"); + } } -- cgit v1.2.1