mirror of
https://github.com/zebrajr/postgres.git
synced 2025-12-06 12:20:15 +01:00
Improve TAP tests by replacing ok() with better Test::More functions
Transpose the changes made by commit fabb33b35 in 002_pg_dump.pl
into its recently-created clone 006_pg_dump_compress.pl.
This commit is contained in:
parent
7d129ba54e
commit
a6113dc1da
|
|
@ -612,7 +612,8 @@ foreach my $run (sort keys %pgdump_runs)
|
|||
if (($tests{$test}->{like}->{$test_key} || $tests{$test}->{all_runs})
|
||||
&& !defined($tests{$test}->{unlike}->{$test_key}))
|
||||
{
|
||||
if (!ok($output_file =~ $tests{$test}->{regexp},
|
||||
if (!like(
|
||||
$output_file, $tests{$test}->{regexp},
|
||||
"$run: should dump $test"))
|
||||
{
|
||||
diag("Review $run results in $tempdir");
|
||||
|
|
@ -620,7 +621,8 @@ foreach my $run (sort keys %pgdump_runs)
|
|||
}
|
||||
else
|
||||
{
|
||||
if (!ok($output_file !~ $tests{$test}->{regexp},
|
||||
if (!unlike(
|
||||
$output_file, $tests{$test}->{regexp},
|
||||
"$run: should not dump $test"))
|
||||
{
|
||||
diag("Review $run results in $tempdir");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user