Subject: | Failed test 'Connect with invalid option fails' at t/01connect.t line 79. |
Test `Connect with invalid option fails' fails:
$ make test
PGINITDB="/usr/bin/initdb" PERL_DL_NONLAZY=1 /usr/bin/perl
"-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib',
'blib/arch')" t/*.t
t/00-signature.t .... skipped: Set the environment variable
TEST_SIGNATURE to enable this test
t/00_release.t ...... skipped: Test skipped unless environment variable
RELEASE_TESTING is set
t/00basic.t ......... ok
t/01connect.t ....... Please wait, creating new database for testing
t/01connect.t ....... 4/13
# Failed test 'Connect with invalid option fails'
# at t/01connect.t line 79.
# ''
# doesn't match '(?-xism:DBI connect.+failed:)'
#
# DBI Version 1.609
# DBD::Pg Version 2.17.1
# Perl Version 5.10.0
# OS linux
# PostgreSQL (compiled) 80403
# PostgreSQL (target) 80403
# PostgreSQL (reported) PostgreSQL 8.4.3 on
x86_64-redhat-linux-gnu, compiled by GCC gcc (GCC) 4.4.3 20100127 (Red
Hat 4.4.3-4), 64-bit
# Default port 5432
# DBI_DSN
dbi:Pg:db="postgres";port=5440;host=<pwd>/dbdpg_test_database/data/socket
# DBI_USER petr
# Test schema dbd_pg_testschema
# LANG C
# array_nulls on
# backslash_quote safe_encoding
# client_encoding UTF8
# server_encoding UTF8
# standard_conforming_strings off
# Adjusted: initdb
# Looks like you failed 1 test of 13.
t/01connect.t ....... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/13 subtests
t/01constants.t ..... ok
t/02attribs.t ....... ok
t/03dbmethod.t ...... ok
t/03smethod.t ....... ok
t/04misc.t .......... ok
t/06bytea.t ......... ok
t/07copy.t .......... ok
t/08async.t ......... ok
t/09arrays.t ........ ok
t/12placeholders.t .. ok
t/20savepoints.t .... ok
t/99_perlcritic.t ... skipped: Test skipped unless environment variable
RELEASE_TESTING is set
t/99_pod.t .......... skipped: Test skipped unless environment variable
RELEASE_TESTING is set
t/99_spellcheck.t ... skipped: Test skipped unless environment variable
RELEASE_TESTING is set
t/99_yaml.t ......... skipped: Test skipped unless environment variable
RELEASE_TESTING is set
t/99cleanup.t ....... 1/1 Removing test database directory
t/99cleanup.t ....... ok
Test Summary Report
-------------------
t/01connect.t (Wstat: 256 Tests: 13 Failed: 1)
Failed test: 9
Non-zero exit status: 1
Files=20, Tests=1707, 33 wallclock secs ( 0.32 usr 0.06 sys + 5.51
cusr 7.64 csys = 13.53 CPU)
Result: FAIL
Failed 1/20 test programs. 1/1707 subtests failed.
make: *** [test_dynamic] Error 255
As you can see I do not use preconfigured database, no DBI_* variables
are defined.
This bug presents in DBD-Pg 2.17.1 and SVN r13899.