From: | dam [...] cpan.org |
Subject: | libdbix-class-perl: FTBFS: test failures |
DBIx-Class seems to fail some tests with DBD::SQLite 1.40.
The following is taken from a bug report about it in Debian
(http://bugs.debian.org/735024).
I will follow up with a patch that adds support for the new exception
text.
-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->-->
# Failed test 'Exception propogated properly'
# at t/multi_create/standard.t line 447.
# expecting: Regexp ((?^:cd.artist may not be NULL))
# found: DBIx::Class::Exception (DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::SQLite::st execute failed: NOT NULL constraint failed: cd.artist [for Statement "INSERT INTO cd ( artist) VALUES ( ? )"] at t/multi_create/standard.t line 446
# )
# Looks like you failed 1 test of 91.
t/multi_create/standard.t ...........................
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/91 subtests
...
# Failed test 'ambiguous find + create failed'
# at t/relationship/update_or_create_multi.t line 72.
# expecting: Regexp ((?^:cd\.artist\ may\ not\ be\ NULL))
# found: DBIx::Class::Exception (DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::SQLite::st execute failed: NOT NULL constraint failed: cd.artist [for Statement "INSERT INTO cd ( genreid, title, year) VALUES ( ?, ?, ? )"] at t/relationship/update_or_create_multi.t line 68
# )
# Looks like you failed 1 test of 7.
t/relationship/update_or_create_multi.t .............
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/7 subtests
...
# Failed test 'threw Regexp ((?^s:DBI Exception.+cd\.artist.+NULL))'
# at t/storage/error.t line 18.
# expecting: Regexp ((?^s:DBI Exception.+cd\.artist.+NULL))
# found: DBIx::Class::Exception (DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::SQLite::st execute failed: NOT NULL constraint failed: cd.artist [for Statement "INSERT INTO cd ( title) VALUES ( ? )"] at t/storage/error.t line 16
# )
# Looks like you failed 1 test of 4.
t/storage/error.t ...................................
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/4 subtests
...
Test Summary Report
-------------------
t/52leaks.t (Wstat: 0 Tests: 196 Failed: 0)
TODO passed: 8
t/multi_create/standard.t (Wstat: 256 Tests: 91 Failed: 1)
Failed test: 87
Non-zero exit status: 1
t/relationship/update_or_create_multi.t (Wstat: 256 Tests: 7 Failed: 1)
Failed test: 6
Non-zero exit status: 1
t/storage/error.t (Wstat: 256 Tests: 4 Failed: 1)
Failed test: 1
Non-zero exit status: 1
Files=288, Tests=22165, 205 wallclock secs ( 3.49 usr 1.60 sys + 180.62 cusr 18.20 csys = 203.91 CPU)
Result: FAIL
<--<--<--<--<--<--<--<--<--<--<--<--<--<--<--<--<--<--<--<--