Changeset 948 for trunk


Ignore:
Timestamp:
12/24/25 13:01:43 (4 hours ago)
Author:
Kris Deugau
Message:

/trunk/t

Patch up some fixes misplaced in patch shuffling
See #88

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/t/DNSTest.pm

    r947 r948  
    5757  BAIL_OUT("# DB looks like it may not be a test DB, found $dcount > 10 domains!\n")
    5858        if $dcount > 10;
    59   ok( $dcount, '<=', 10, "domain count ($dcount): looks like a test DB" );
     59  cmp_ok( $dcount, '<=', 10, "domain count ($dcount): looks like a test DB" );
    6060
    6161  my ($rcount) = $dbh->selectrow_array("SELECT count(*) FROM records");
    6262  BAIL_OUT("# DB looks like it may not be a test DB, found $rcount > 30 records!\n")
    6363        if $rcount > 50;
    64   ok( $rcount, '<=', 50, "record ($rcount): looks like a test DB" );
     64  cmp_ok( $rcount, '<=', 50, "record ($rcount): looks like a test DB" );
    6565
    6666  # drop all tables etc
     
    7070  diag( $dropdata ) if $debug;
    7171  # load some standard test data
    72   my $reload = qx( psql -h $dnsdb->{dbhost} -U $dnsdb->{dbuser} $dnsdb->{dbname} < t/dns-unitbase.sql );
     72  my $reload = qx( psql -h $dnsdb->{dbhost} -U $dnsdb->{dbuser} $dnsdb->{dbname} 2>&1 < t/dns-unitbase.sql );
    7373  diag( $reload ) if $debug;
    7474  undef $ENV{PGPASSWORD};
Note: See TracChangeset for help on using the changeset viewer.