[Dbix-class] install test failures

Dave Howorth dhoworth at mrc-lmb.cam.ac.uk
Tue Oct 7 14:34:09 BST 2008


Peter Rabbitson wrote:
> Dave Howorth wrote:
>> Peter Rabbitson wrote:
>>> Dave Howorth wrote:
>>>> This doesn't solve my issue with t/81transactions.t. I'll look at that now.
>>> About t/81transactions - does this happen on trunk with no
>>> midifications? What is your `env | grep DBICTEST` if any?
>> Yes, it happens on trunk with no modifications. No output for DBICTEST.
>>
>> Updating Test::Exception hasn't fixed it either. Still looking ...
>>
> 
> How about Scope::Guard ?

I already have the latest version of that.

The error I'm seeing is:

not ok 56 - Error propogated okay
#   Failed test 'Error propogated okay'
#   at t/81transactions.t line 259.
# expecting: Regexp ((?-xism:No such column made_up_column .*? at
.*?81transactions.t line \d+))
# found: DBIx::Class::Exception (No such column made_up_column on
DBICTest::Artist at blib/lib/DBIx/Class/Schema.pm line 1080
#
DBIx::Class::Schema::throw_exception('DBICTest::Schema=HASH(0x88c8160)',
'undef', 'DBICTest::Schema=HASH(0x88c8160)', 'undef', 'CODE(0x8295864)',
'CODE(0x88ca198)') called at blib/lib/DBIx/Class/Row.pm line 856
#
DBIx::Class::Row::throw_exception('DBICTest::Schema=HASH(0x88c8160)',
'undef', 'DBICTest::Schema=HASH(0x88c8160)', 'undef', 'CODE(0x8295864)',
'CODE(0x88ca198)') called at blib/lib/DBIx/Class/Row.pm line 155
#       DBIx::Class::Row::new('DBICTest::Schema=HASH(0x88c8160)',
'undef', 'DBICTest::Schema=HASH(0x88c8160)', 'undef', 'CODE(0x8295864)',
'CODE(0x88ca198)') called at blib/lib/DBIx/Class/ResultSet.pm line 1571
#
DBIx::Class::ResultSet::new_result('DBICTest::Schema=HASH(0x88c8160)',
'undef', 'DBICTest::Schema=HASH(0x88c8160)', 'undef', 'CODE(0x8295864)',
'CODE(0x88ca198)') called at blib/lib/DBIx/Class/ResultSet.pm line 1741
#
DBIx::Class::ResultSet::create('DBICTest::Schema=HASH(0x88c8160)',
'undef', 'DBICTest::Schema=HASH(0x88c8160)', 'undef', 'CODE(0x8295864)',
'CODE(0x88ca198)') called at t/81transactions.t line 253
#       Test::Exception::throws_ok('DBICTest::Schema=HASH(0x88c8160)',
'undef', 'DBICTest::Schema=HASH(0x88c8160)', 'undef', 'CODE(0x8295864)',
'CODE(0x88ca198)') called at t/81transactions.t line 259
# )



The test uses this regex: qr/No such column made_up_column .*? at
.*?81transactions.t line \d+/,

I'm not clear why it needs to use such a complicated regex instead of
just qr/No such column made_up_column/ ?

I also don't understand why it doesn't need a /s modifier but I tried
adding one and it didn't fix it so clearly I'm not thinking straight!

Cheers, Dave



More information about the DBIx-Class mailing list