Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#46440 closed defect (invalid)

p5-class-dbi-mysql: tests fail

Reported by: mojca (Mojca Miklavec) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: ctreleaven (Craig Treleaven)
Port: p5-class-dbi-mysql

Description

--->  Testing p5.16-class-dbi-mysql
PERL_DL_NONLAZY=1 /opt/local/bin/perl5.16 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
DBI connect('test','',...) failed: Can't connect to local MySQL server through socket '/opt/local/var/run/mysql5/mysqld.sock' (2) at /opt/local/lib/perl5/vendor_perl/5.16.0/Ima/DBI.pm line 328.
DBI connect('test','',...) failed: Can't connect to local MySQL server through socket '/opt/local/var/run/mysql5/mysqld.sock' (2) at /opt/local/lib/perl5/vendor_perl/5.16.0/Ima/DBI.pm line 328.
END failed--call queue aborted at t/mysql.t line 100.
# Looks like you planned 8 tests but ran 1.
# Looks like your test exited with 2 just after 1.
t/mysql.t ......... 
Dubious, test returned 2 (wstat 512, 0x200)
Failed 7/8 subtests 
t/pod-coverage.t .. skipped: Test::Pod::Coverage 1.00 required for testing POD coverage
t/pod.t ........... skipped: Test::Pod 1.00 required for testing POD

Test Summary Report
-------------------
t/mysql.t       (Wstat: 512 Tests: 1 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 8 tests but ran 1.
Files=3, Tests=1,  0 wallclock secs ( 0.04 usr  0.02 sys +  0.18 cusr  0.05 csys =  0.29 CPU)
Result: FAIL
Failed 1/3 test programs. 0/1 subtests failed.
make: *** [test_dynamic] Error 255
Command failed:  cd "/path/to/p5.16-class-dbi-mysql/work/Class-DBI-mysql-1.00" && /usr/bin/make test 
Exit code: 2
Warning: The following existing files were hidden from the build system by trace mode:
  /opt/local/lib/perl5/vendor_perl/5.16.3/Test/Pod.pm
  /opt/local/lib/perl5/vendor_perl/5.16.3/darwin-thread-multi-2level/Cwd.pm
  /opt/local/lib/perl5/vendor_perl/5.16.3/darwin-thread-multi-2level/File/Spec.pm
  /opt/local/lib/perl5/vendor_perl/5.16.3/darwin-thread-multi-2level/File/Spec/Unix.pm
  /opt/local/lib/perl5/vendor_perl/5.16.3/darwin-thread-multi-2level/IO.pm
  /opt/local/lib/perl5/vendor_perl/5.16.3/darwin-thread-multi-2level/IO/Handle.pm
  /opt/local/lib/perl5/vendor_perl/5.16.3/darwin-thread-multi-2level/IO/Select.pm
  /opt/local/lib/perl5/vendor_perl/5.16.3/darwin-thread-multi-2level/List/Util.pm
  /opt/local/lib/perl5/vendor_perl/5.16.3/darwin-thread-multi-2level/Scalar/Util.pm
  /opt/local/lib/perl5/vendor_perl/5.16.3/darwin-thread-multi-2level/Sub/Name.pm
  /opt/local/lib/perl5/vendor_perl/5.16.3/darwin-thread-multi-2level/Time/HiRes.pm
  /opt/local/lib/perl5/vendor_perl/5.16.3/darwin-thread-multi-2level/auto/Time/HiRes/HiRes.bundle
The following file would have been hidden from the build system by trace mode if it existed:
  /usr/gnu/include
Error: org.macports.test for port p5.16-class-dbi-mysql returned: command execution failed
Warning: targets not executed for p5.16-class-dbi-mysql: org.macports.test
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port p5.16-class-dbi-mysql failed

Change History (4)

comment:1 Changed 10 years ago by dbevans (David B. Evans)

It's failing trying to connect to a local MySQL server which, I'm guessing, is not configured/running.

comment:2 Changed 10 years ago by dbevans (David B. Evans)

Resolution: invalid
Status: newclosed

Test succeeds for me with local mysql56 server up and running.

comment:3 Changed 10 years ago by ctreleaven (Craig Treleaven)

Cc: ctreleaven@… added

Cc Me!

comment:4 Changed 10 years ago by mojca (Mojca Miklavec)

Thanks a lot for confirming.

(I preferred to open tickets for problems I experienced before forgetting about issues that I came across.)

Note: See TracTickets for help on using tickets.