Skip Menu |

This queue is for tickets about the Test-postgresql CPAN distribution.

Report information
The Basics
Id: 120776
Status: resolved
Priority: 0/
Queue: Test-postgresql

People
Owner: TJC [...] cpan.org
Requestors: sjors [...] sjorsgielen.nl
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Test failure
Date: Tue, 28 Mar 2017 12:59:51 +0000
To: bug-Test-postgresql [...] rt.cpan.org
From: Sjors Gielen <sjors [...] sjorsgielen.nl>
I'm trying to install Test::PostgreSQL 1.21 on Ubuntu 16.04 (Perl 5.22.1 with 58 registered patches) using CPAN, and getting the following errors during the 'make test' step: TJC/Test-PostgreSQL-1.21.tar.gz Has already been unwrapped into directory /home/sjors/.local/share/.cpan/build/Test-PostgreSQL-1.21-76hWTd TJC/Test-PostgreSQL-1.21.tar.gz Has already been prepared Running make for T/TJ/TJC/Test-PostgreSQL-1.21.tar.gz cp lib/Test/PostgreSQL.pm blib/lib/Test/PostgreSQL.pm Manifying 1 pod document TJC/Test-PostgreSQL-1.21.tar.gz /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t t/00-base.t .......... 1/1 # Failed test 'use Test::PostgreSQL;' # at t/00-base.t line 6. # Tried to use 'Test::PostgreSQL'. # Error: In method _build_initdb_args: I was expecting a parameter list, not "{" at /home/sjors/.local/share/.cpan/build/Test-PostgreSQL-1.21-76hWTd/blib/lib/Test/PostgreSQL.pm line 109. # Compilation failed in require at t/00-base.t line 6. # BEGIN failed--compilation aborted at t/00-base.t line 6. # Looks like you failed 1 test of 1. t/00-base.t .......... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests t/01-raii.t .......... In method _build_initdb_args: I was expecting a parameter list, not "{" at /home/sjors/.local/share/.cpan/build/Test-PostgreSQL-1.21-76hWTd/blib/lib/Test/PostgreSQL.pm line 109. Compilation failed in require at t/01-raii.t line 6. BEGIN failed--compilation aborted at t/01-raii.t line 6. t/01-raii.t .......... Dubious, test returned 2 (wstat 512, 0x200) No subtests run t/02-multi.t ......... In method _build_initdb_args: I was expecting a parameter list, not "{" at /home/sjors/.local/share/.cpan/build/Test-PostgreSQL-1.21-76hWTd/blib/lib/Test/PostgreSQL.pm line 109. Compilation failed in require at t/02-multi.t line 6. BEGIN failed--compilation aborted at t/02-multi.t line 6. t/02-multi.t ......... Dubious, test returned 2 (wstat 512, 0x200) No subtests run t/04-multiprocess.t .. In method _build_initdb_args: I was expecting a parameter list, not "{" at /home/sjors/.local/share/.cpan/build/Test-PostgreSQL-1.21-76hWTd/blib/lib/Test/PostgreSQL.pm line 109. Compilation failed in require at t/04-multiprocess.t line 6. BEGIN failed--compilation aborted at t/04-multiprocess.t line 6. t/04-multiprocess.t .. Dubious, test returned 2 (wstat 512, 0x200) No subtests run t/deadlock.t ......... In method _build_initdb_args: I was expecting a parameter list, not "{" at /home/sjors/.local/share/.cpan/build/Test-PostgreSQL-1.21-76hWTd/blib/lib/Test/PostgreSQL.pm line 109. Compilation failed in require at t/deadlock.t line 5. BEGIN failed--compilation aborted at t/deadlock.t line 5. t/deadlock.t ......... Dubious, test returned 2 (wstat 512, 0x200) No subtests run t/pod.t .............. skipped: Test::Pod 1.14 required Test Summary Report ------------------- t/00-base.t (Wstat: 256 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 1 t/01-raii.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/02-multi.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/04-multiprocess.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/deadlock.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output Files=6, Tests=1, 1 wallclock secs ( 0.02 usr 0.00 sys + 0.30 cusr 0.02 csys = 0.34 CPU) Result: FAIL Failed 5/6 test programs. 1/1 subtests failed. Makefile:752: recipe for target 'test_dynamic' failed make: *** [test_dynamic] Error 255 TJC/Test-PostgreSQL-1.21.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports TJC/Test-PostgreSQL-1.21.tar.gz Failed during this command: TJC/Test-PostgreSQL-1.21.tar.gz : make_test NO
Subject: Re: [rt.cpan.org #120776] AutoReply: Test failure
Date: Tue, 28 Mar 2017 13:04:50 +0000
To: bug-Test-postgresql [...] rt.cpan.org
From: Sjors Gielen <sjors [...] sjorsgielen.nl>
The following patch fixes the issue: --- /home/sjors/.local/share/.cpan/build/Test-PostgreSQL-1.21-76hWTd/blib/lib/Test/PostgreSQL.pm 2017-03-28 15:04:25.479221432 +0200 +++ /home/sjors/.local/share/.cpan/build/Test-PostgreSQL-1.21-bj8Nj8/blib/lib/Test/PostgreSQL.pm 2017-03-28 15:03:04.686786352 +0200 @@ -106,7 +106,7 @@ isa => Str, ); -method _build_initdb_args { +method _build_initdb_args () { return "-U postgres -A trust " . $self->extra_initdb_args; } @@ -175,7 +175,7 @@ isa => Str, ); -method _build_postmaster_args { +method _build_postmaster_args () { return "-h 127.0.0.1 -F " . $self->extra_postmaster_args; } Op di 28 mrt. 2017 om 15:01 schreef Bugs in Test-postgresql via RT < bug-Test-postgresql@rt.cpan.org>: Show quoted text
> > Greetings, > > This message has been automatically generated in response to the > creation of a trouble ticket regarding: > "Test failure", > a summary of which appears below. > > There is no need to reply to this message right now. Your ticket has been > assigned an ID of [rt.cpan.org #120776]. Your ticket is accessible > on the web at: > > https://rt.cpan.org/Ticket/Display.html?id=120776 > > Please include the string: > > [rt.cpan.org #120776] > > in the subject line of all future correspondence about this issue. To do > so, > you may reply to this message. > > Thank you, > bug-Test-postgresql@rt.cpan.org > > ------------------------------------------------------------------------- > I'm trying to install Test::PostgreSQL 1.21 on Ubuntu 16.04 (Perl 5.22.1 > with 58 registered patches) using CPAN, and getting the following errors > during the 'make test' step: > > TJC/Test-PostgreSQL-1.21.tar.gz > Has already been unwrapped into directory > /home/sjors/.local/share/.cpan/build/Test-PostgreSQL-1.21-76hWTd > TJC/Test-PostgreSQL-1.21.tar.gz > Has already been prepared > Running make for T/TJ/TJC/Test-PostgreSQL-1.21.tar.gz > cp lib/Test/PostgreSQL.pm blib/lib/Test/PostgreSQL.pm > Manifying 1 pod document > TJC/Test-PostgreSQL-1.21.tar.gz > /usr/bin/make -- OK > Running make test > PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" > "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, > 'inc', 'blib/lib', 'blib/arch')" t/*.t > t/00-base.t .......... 1/1 > # Failed test 'use Test::PostgreSQL;' > # at t/00-base.t line 6. > # Tried to use 'Test::PostgreSQL'. > # Error: In method _build_initdb_args: I was expecting a parameter > list, not "{" at > > /home/sjors/.local/share/.cpan/build/Test-PostgreSQL-1.21-76hWTd/blib/lib/Test/PostgreSQL.pm > line 109. > # Compilation failed in require at t/00-base.t line 6. > # BEGIN failed--compilation aborted at t/00-base.t line 6. > # Looks like you failed 1 test of 1. > t/00-base.t .......... Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/1 subtests > t/01-raii.t .......... In method _build_initdb_args: I was expecting a > parameter list, not "{" at > > /home/sjors/.local/share/.cpan/build/Test-PostgreSQL-1.21-76hWTd/blib/lib/Test/PostgreSQL.pm > line 109. > Compilation failed in require at t/01-raii.t line 6. > BEGIN failed--compilation aborted at t/01-raii.t line 6. > t/01-raii.t .......... Dubious, test returned 2 (wstat 512, 0x200) > No subtests run > t/02-multi.t ......... In method _build_initdb_args: I was expecting a > parameter list, not "{" at > > /home/sjors/.local/share/.cpan/build/Test-PostgreSQL-1.21-76hWTd/blib/lib/Test/PostgreSQL.pm > line 109. > Compilation failed in require at t/02-multi.t line 6. > BEGIN failed--compilation aborted at t/02-multi.t line 6. > t/02-multi.t ......... Dubious, test returned 2 (wstat 512, 0x200) > No subtests run > t/04-multiprocess.t .. In method _build_initdb_args: I was expecting a > parameter list, not "{" at > > /home/sjors/.local/share/.cpan/build/Test-PostgreSQL-1.21-76hWTd/blib/lib/Test/PostgreSQL.pm > line 109. > Compilation failed in require at t/04-multiprocess.t line 6. > BEGIN failed--compilation aborted at t/04-multiprocess.t line 6. > t/04-multiprocess.t .. Dubious, test returned 2 (wstat 512, 0x200) > No subtests run > t/deadlock.t ......... In method _build_initdb_args: I was expecting a > parameter list, not "{" at > > /home/sjors/.local/share/.cpan/build/Test-PostgreSQL-1.21-76hWTd/blib/lib/Test/PostgreSQL.pm > line 109. > Compilation failed in require at t/deadlock.t line 5. > BEGIN failed--compilation aborted at t/deadlock.t line 5. > t/deadlock.t ......... Dubious, test returned 2 (wstat 512, 0x200) > No subtests run > t/pod.t .............. skipped: Test::Pod 1.14 required > > Test Summary Report > ------------------- > t/00-base.t (Wstat: 256 Tests: 1 Failed: 1) > Failed test: 1 > Non-zero exit status: 1 > t/01-raii.t (Wstat: 512 Tests: 0 Failed: 0) > Non-zero exit status: 2 > Parse errors: No plan found in TAP output > t/02-multi.t (Wstat: 512 Tests: 0 Failed: 0) > Non-zero exit status: 2 > Parse errors: No plan found in TAP output > t/04-multiprocess.t (Wstat: 512 Tests: 0 Failed: 0) > Non-zero exit status: 2 > Parse errors: No plan found in TAP output > t/deadlock.t (Wstat: 512 Tests: 0 Failed: 0) > Non-zero exit status: 2 > Parse errors: No plan found in TAP output > Files=6, Tests=1, 1 wallclock secs ( 0.02 usr 0.00 sys + 0.30 cusr 0.02 > csys = 0.34 CPU) > Result: FAIL > Failed 5/6 test programs. 1/1 subtests failed. > Makefile:752: recipe for target 'test_dynamic' failed > make: *** [test_dynamic] Error 255 > TJC/Test-PostgreSQL-1.21.tar.gz > /usr/bin/make test -- NOT OK > //hint// to see the cpan-testers results for installing this module, try: > reports TJC/Test-PostgreSQL-1.21.tar.gz > Failed during this command: > TJC/Test-PostgreSQL-1.21.tar.gz : make_test NO >
This is due to an upstream module change, Function::Parameters
This is fixed in 1.22, which is uploading to CPAN now. Thanks for the patch!