1 BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) }
8 use DBICTest::Util 'capture_stderr';
14 # ensure Devel::StackTrace-refcapture-like effects are countered
16 my $s = DBICTest::Schema->connect('dbi:SQLite::memory:');
17 my $g = $s->txn_scope_guard;
21 local $SIG{__WARN__} = sub {
24 while (my @f = CORE::caller(++$frnum) ) {
25 push @arg_capture, @DB::args;
33 # this should emit on stderr
34 $output = capture_stderr { @arg_capture = () };
39 qr/\QPreventing *MULTIPLE* DESTROY() invocations on DBIx::Class::Storage::TxnScopeGuard/,
40 'Proper warning emitted on STDERR'