2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-06-01 01:40:51 +00:00

Call cleanup between test sections

This commit is contained in:
Jay Berkenbilt 2018-12-22 10:51:38 -05:00
parent fa3051d977
commit ce714ac9b8

View File

@ -1041,6 +1041,7 @@ show_ntests();
$td->notify("--- Overwrite self ---");
$n_tests += 1;
copy("minimal.pdf", "a.pdf");
$td->runtest("don't overwrite self",
{$td->COMMAND => "(echo a.pdf; echo a.pdf) | qpdf \@-"},
{$td->REGEXP => "input file and output file are the same.*",
@ -3178,6 +3179,9 @@ sub show_ntests
{
$td->emphasize("tests so far: ". calc_ntests());
}
# Calling cleanup here helps to ensure that sections of the test
# suite are isolated.
cleanup();
}
sub bash_completion