File tree 1 file changed +16
-0
lines changed
src/test/modules/test_pg_dump/t 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 857
857
858
858
foreach my $test (sort keys %tests )
859
859
{
860
+ # Check for proper test definitions
861
+ #
862
+ # There should be a "like" list, even if it is empty. (This
863
+ # makes the test more self-documenting.)
864
+ if (!defined($tests {$test }->{like}))
865
+ {
866
+ die "missing \" like\" in test \" $test \" ";
867
+ }
868
+ # Check for useless entries in "unlike" list. Runs that are
869
+ # not listed in "like" don't need to be excluded in "unlike".
870
+ if ($tests {$test }->{unlike}->{$test_key }
871
+ && !defined($tests {$test }->{like}->{$test_key }))
872
+ {
873
+ die "useless \" unlike\" entry \" $test_key \" in test \" $test \" ";
874
+ }
875
+
860
876
# Run the test listed as a like, unless it is specifically noted
861
877
# as an unlike (generally due to an explicit exclusion or similar).
862
878
if ($tests {$test }->{like}->{$test_key }
You can’t perform that action at this time.
0 commit comments