Andreas Jochens wrote:
> When trying to build 'debhelper' in a clean unstable chroot,
> I get the following error:
>
> debian/rules clean
> ./run dh_testdir
> ./run dh_testroot
> ./run dh_clean *.1 *.7 *-stamp Debian/Debhelper/Dh_Version.pm
> rm -rf man
> debian/rules build
> ./run dh_clean
> ./run perl -MTest::Harness -e 'runtests grep { ! /CVS/ && ! /\.svn/ } @ARGV'
> t/*
> t/dh_link...ok
> t/syntax....# Test 44 got: "512" (t/syntax at line 10 fail #44)
> # Expected: "0"
> # t/syntax line 10 is: ok(system("perl -c $file >/dev/null 2>&1"), 0);
> FAILED test 44
> Failed 1/48 tests, 97.92% okay
> Failed Test Stat Wstat Total Fail Failed List of Failed
> -------------------------------------------------------------------------------
> t/syntax 48 1 2.08% 44
> Failed 1/2 test scripts, 50.00% okay. 1/56 subtests failed, 98.21% okay.
> make: *** [test-stamp] Error 255Please replace t/syntax with the attached file and run t/syntax by hand and send me the output. -- see shy jo
#!/usr/bin/perl
use Test;
my @progs=grep { -x $_ } glob("dh_*");
my @libs=glob("Debian/Debhelper/*.pm");
plan(tests => (@progs + @libs));
foreach my $file (@progs, @libs) {
print "# Testing $file\n";
ok(system("perl -c $file >/dev/null 2>&1"), 0);
}
signature.asc
Description: Digital signature

