mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 14:19:10 -04:00
Adding a known-bad skip
This commit is contained in:
parent
069c5fd7d6
commit
23feb5331b
1 changed files with 11 additions and 5 deletions
|
@ -1,5 +1,12 @@
|
|||
use Test;
|
||||
BEGIN { plan tests => 18 }
|
||||
#!/usr/bin/perl
|
||||
|
||||
use strict;
|
||||
BEGIN {
|
||||
$| = 1;
|
||||
}
|
||||
|
||||
use Test::More skip_all => 'Temporarily skipping known-bad test';
|
||||
#use Test::More tests => 18;
|
||||
use DBI;
|
||||
|
||||
sub now {
|
||||
|
@ -8,7 +15,6 @@ sub now {
|
|||
|
||||
sub add2 {
|
||||
my ( $a, $b ) = @_;
|
||||
|
||||
return $a + $b;
|
||||
}
|
||||
|
||||
|
@ -45,12 +51,12 @@ sub noop {
|
|||
}
|
||||
|
||||
my $dbh = DBI->connect("dbi:SQLite:dbname=foo", "", "", { PrintError => 0 } );
|
||||
ok($dbh);
|
||||
isa_ok( $dbh, 'DBI::db' );
|
||||
|
||||
$dbh->func( "now", 0, \&now, "create_function" );
|
||||
my $result = $dbh->selectrow_arrayref( "SELECT now()" );
|
||||
|
||||
ok( $result->[0] );
|
||||
ok( $result->[0], 'Got a result' );
|
||||
|
||||
$dbh->do( 'CREATE TEMP TABLE func_test ( a, b )' );
|
||||
$dbh->do( 'INSERT INTO func_test VALUES ( 1, 3 )' );
|
||||
|
|
Loading…
Add table
Reference in a new issue