diff options
author | Jay Berkenbilt <ejb@ql.org> | 2018-06-22 18:15:22 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2018-06-22 18:52:45 +0200 |
commit | 4ccc8b1a44109a913c87f31029c9c17db30ecc43 (patch) | |
tree | fb2259c3507896c252037aca9b14e2d93acb2259 /libtests/qtest/closedfile | |
parent | 32ddcec91e77b9f6a52480c3393ab17cbc105880 (diff) | |
download | qpdf-4ccc8b1a44109a913c87f31029c9c17db30ecc43.tar.zst |
Add ClosedFileInputSource
ClosedFileInputSource is an input source that keeps the file closed
when not reading it.
Diffstat (limited to 'libtests/qtest/closedfile')
-rw-r--r-- | libtests/qtest/closedfile/input | 5 | ||||
-rw-r--r-- | libtests/qtest/closedfile/output | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/libtests/qtest/closedfile/input b/libtests/qtest/closedfile/input new file mode 100644 index 00000000..25dbd5c2 --- /dev/null +++ b/libtests/qtest/closedfile/input @@ -0,0 +1,5 @@ +!00000000? +Offset 11 +wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww +9 before +This is 25 from the end. diff --git a/libtests/qtest/closedfile/output b/libtests/qtest/closedfile/output new file mode 100644 index 00000000..7a5554af --- /dev/null +++ b/libtests/qtest/closedfile/output @@ -0,0 +1,3 @@ +testing with ClosedFileInputSource +testing with FileInputSource +all assertions passed |