File: 03store_dbi.t

package info (click to toggle)
libbot-basicbot-pluggable-perl 0.98-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 564 kB
  • ctags: 281
  • sloc: perl: 3,112; makefile: 16
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);