File: zz-retreat.t

package info (click to toggle)
libtangram-perl 2.10-1.1
  • links: PTS
  • area: main
  • in suites: lenny, squeeze, wheezy
  • size: 1,064 kB
  • ctags: 703
  • sloc: perl: 9,665; makefile: 35
file content (28 lines) | stat: -rw-r--r-- 465 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/perl -w

use strict;

use Test::More tests => 2;
use lib "t/springfield";

BEGIN {
    use_ok "Springfield";
};

local $/;

SKIP:
{
    my $dbh = DBI->connect( $Springfield::cs,
			    $Springfield::user,
			    $Springfield::passwd )
	or skip "could not connect to database", 1;

    $dbh->{RaiseError} = 1;

    $Springfield::dialect->retreat($Springfield::schema, $dbh);

    pass("retreat completed without raising errors");

    $dbh->disconnect;
}