File: 03store_dbi.t

package info (click to toggle)
libbot-basicbot-pluggable-perl 1.30%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 516 kB
  • sloc: perl: 3,153; makefile: 17
file content (11 lines) | stat: -rw-r--r-- 313 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
#!perl
use warnings;
use strict;
use Test::Bot::BasicBot::Pluggable::Store;

# Calling tempfile hangs the process under MacOSX... so we live with the race condition
use File::Temp qw(tmpnam);
my $tempfile = tmpnam();

store_ok( 'DBI', { dsn => "dbi:SQLite:$tempfile", table => "basic-bot" } );
unlink($tempfile);