diff options
author | Jay Berkenbilt <ejb@ql.org> | 2019-01-27 14:00:32 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2019-01-27 15:26:33 +0100 |
commit | c2ae35540e78d4edfbc57d42bfa2fc166c38b8a5 (patch) | |
tree | 1fb98106ee46f8507bcf363a9c78c269a34a8277 /qpdf/qtest | |
parent | 2d1db060422eabb82aaa1764926a3f9e881116e2 (diff) | |
download | qpdf-c2ae35540e78d4edfbc57d42bfa2fc166c38b8a5.tar.zst |
Add boundary condition test for getUniqueResourceName
Diffstat (limited to 'qpdf/qtest')
-rw-r--r-- | qpdf/qtest/qpdf.test | 9 | ||||
-rw-r--r-- | qpdf/qtest/qpdf/unique-resources.pdf | bin | 0 -> 849 bytes |
2 files changed, 8 insertions, 1 deletions
diff --git a/qpdf/qtest/qpdf.test b/qpdf/qtest/qpdf.test index 817f6174..8f86844d 100644 --- a/qpdf/qtest/qpdf.test +++ b/qpdf/qtest/qpdf.test @@ -1032,12 +1032,19 @@ $td->runtest("detect foreign object in write", show_ntests(); # ---------- $td->notify("--- Merge Dictionary ---"); -$n_tests += 1; +$n_tests += 3; $td->runtest("merge dictionary", {$td->COMMAND => "test_driver 50 merge-dict.pdf"}, {$td->FILE => "merge-dict.out", $td->EXIT_STATUS => 0}, $td->NORMALIZE_NEWLINES); +$td->runtest("unique resource name", + {$td->COMMAND => "test_driver 60 minimal.pdf"}, + {$td->STRING => "test 60 done\n", $td->EXIT_STATUS => 0}, + $td->NORMALIZE_NEWLINES); +$td->runtest("check output", + {$td->FILE => "a.pdf"}, + {$td->FILE => "unique-resources.pdf"}); show_ntests(); # ---------- diff --git a/qpdf/qtest/qpdf/unique-resources.pdf b/qpdf/qtest/qpdf/unique-resources.pdf Binary files differnew file mode 100644 index 00000000..1f789ea1 --- /dev/null +++ b/qpdf/qtest/qpdf/unique-resources.pdf |