10 # make sure nothing eats the exceptions (an unchecked eval in Storage::DESTROY used to be a problem)
13 package Dying::Storage;
18 use base 'DBIx::Class::Storage::DBI';
22 my $death = $self->_dbi_connect_info->[3]{die};
24 die "storage test died: $death" if $death eq 'before_populate';
25 my $ret = $self->next::method (@_);
26 die "storage test died: $death" if $death eq 'after_populate';
32 for (qw/before_populate after_populate/) {
34 my $schema = DBICTest::Schema->clone;
35 $schema->storage_type ('Dying::Storage');
36 $schema->connection (DBICTest->_database, { die => $_ });
37 $schema->storage->ensure_connected;
38 }, "$_ exception found");