Commit 290a6721417f9de1c5c8bd854ecd562827729cd7
1 parent
1db8a8b2
Add test cases for fix-qpdf from pipe
Showing
2 changed files
with
33 additions
and
0 deletions
ChangeLog
| 1 | +2023-09-02 Jay Berkenbilt <ejb@ql.org> | |
| 2 | + | |
| 3 | + * Bug fix from M. Holger: allow fix-qdf to read from pipe. Fixes #1010. | |
| 4 | + | |
| 5 | + * Bug fix: maintain links to foreign pages when copying foreign | |
| 6 | + objects. This corrects a possible crash. | |
| 7 | + | |
| 8 | + * Add /MediaBox to a page if absent. Thanks M. Holger. | |
| 9 | + | |
| 10 | + * Use std::vector internally for Pl_Buffer to | |
| 11 | + avoid incompatibility with C++20. Thanks to Zoe Clifford. Fixes #1024. | |
| 12 | + | |
| 1 | 13 | 2023-07-09 Jay Berkenbilt <ejb@ql.org> |
| 2 | 14 | |
| 3 | 15 | * 11.5.0: release | ... | ... |
qpdf/qtest/fix-qdf.test
| ... | ... | @@ -28,6 +28,27 @@ for (my $n = 1; $n <= 2; ++$n) |
| 28 | 28 | {$td->FILE => "fix$n.qdf.out", |
| 29 | 29 | $td->EXIT_STATUS => 0}); |
| 30 | 30 | } |
| 31 | +if (! (($^O eq 'MSWin32') || ($^O eq 'Win32') || ($^O eq 'msys'))) | |
| 32 | +{ | |
| 33 | + # The pipe tests are unstable on Windows. It has not been | |
| 34 | + # determined whether this is because the code doesn't work or the | |
| 35 | + # tests don't work, but as of September 2023, I think it works | |
| 36 | + # with MSVC and not with mingw. Fixing fix-qdf to read from pipes | |
| 37 | + # on Windows is not a high priority, but patches are welcome. | |
| 38 | + $n_tests += 4; | |
| 39 | + for (my $n = 1; $n <= 2; ++$n) | |
| 40 | + { | |
| 41 | + $td->runtest("fix-qdf $n from pipe", | |
| 42 | + {$td->COMMAND => "cat fix$n.qdf | fix-qdf "}, | |
| 43 | + {$td->FILE => "fix$n.qdf.out", | |
| 44 | + $td->EXIT_STATUS => 0}); | |
| 45 | + | |
| 46 | + $td->runtest("identity fix-qdf $n", | |
| 47 | + {$td->COMMAND => "fix-qdf fix$n.qdf.out"}, | |
| 48 | + {$td->FILE => "fix$n.qdf.out", | |
| 49 | + $td->EXIT_STATUS => 0}); | |
| 50 | +} | |
| 51 | + } | |
| 31 | 52 | $td->runtest("fix-qdf with big object stream", # > 255 objects in a stream |
| 32 | 53 | {$td->COMMAND => "fix-qdf big-ostream.pdf"}, |
| 33 | 54 | {$td->FILE => "big-ostream.pdf", | ... | ... |