1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-07 14:19:10 -04:00

More Test::NoWarnings

This commit is contained in:
Adam Kennedy 2009-04-10 06:32:55 +00:00
parent 2ac8ee6ee9
commit a17515dbdc
2 changed files with 6 additions and 7 deletions

View file

@ -6,8 +6,9 @@ BEGIN {
$^W = 1;
}
use Test::More tests => 6;
use t::lib::Test;
use Test::More tests => 7;
use Test::NoWarnings;
my $dbh = DBI->connect('dbi:SQLite:dbname=:memory:',undef,undef,{RaiseError => 1});

View file

@ -6,17 +6,15 @@ BEGIN {
$^W = 1;
}
use Test::More tests => 26;
use t::lib::Test;
use Test::More tests => 27;
use Test::NoWarnings;
my $dbh = DBI->connect('dbi:SQLite:foo', '', '',
{
my $dbh = connect_ok(
RaiseError => 1,
PrintError => 0,
AutoCommit => 0,
});
ok($dbh);
);
ok($dbh->do("CREATE TABLE Blah ( id INTEGER, val VARCHAR )"));
ok($dbh->commit);