diff options
author | Jay Berkenbilt <ejb@ql.org> | 2018-12-22 16:51:38 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2018-12-22 17:42:38 +0100 |
commit | ce714ac9b87b6fa877e3f81e7eb2357f4170021c (patch) | |
tree | 9bd9d67ac0fb42f1e1be353aaf04c4f99c47c9a8 | |
parent | fa3051d977ab21da7bde9d9613dca600c83123a5 (diff) | |
download | qpdf-ce714ac9b87b6fa877e3f81e7eb2357f4170021c.tar.zst |
Call cleanup between test sections
-rw-r--r-- | qpdf/qtest/qpdf.test | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qpdf/qtest/qpdf.test b/qpdf/qtest/qpdf.test index 8c81efc8..1919f737 100644 --- a/qpdf/qtest/qpdf.test +++ b/qpdf/qtest/qpdf.test @@ -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 |