Re: Can't compile liblocale-gettext-perl and dpkg packages
Jonathan Nieder wrote:
> Talles wrote:
>> # Failed test '--list should fail'
>> # at ../../src/t/100_dpkg_divert.t line 56.
>
> That's odd. Looking at t/100_dpkg_divert.t, that means that @$args
> was ("--list") but $opts{'expect_failure'} was true, and none of the
> tests are actually set up that way.
Doh --- apparently I can't read.
Here's the test:
| SKIP: {
| skip "running under fakeroot", 3, if (defined($ENV{FAKEROOTKEY}));
|
| # An inexistent diversions db file should not be considered a failure,
| # but a failure to open it should be.
| install_diversions('');
| system("chmod 000 $admindir/diversions");
| call_divert_sort(['--list'], expect_failure => 1,
| expect_stderr_like => qr/(cannot|failed).*open/, expect_stdout => '');
| system("chmod 644 $admindir/diversions");
| }
I assume you are running tests as root. This was fixed by 7e17d3bf
(dpkg-divert: fix the test-suite to also skip tests that would fail if
run as root, 2011-07-27).
Sorry for the misdirection,
Jonathan
Reply to: