aboutsummaryrefslogtreecommitdiffstats
path: root/libtests/closed_file_input_source.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2020-10-16 20:35:18 +0200
committerJay Berkenbilt <ejb@ql.org>2020-10-16 23:15:39 +0200
commit18b34a564906c7ef36daefab081b44ebfd9ee64b (patch)
treeebbbd6805f2efa41e80897f338e4bbf8ca366e36 /libtests/closed_file_input_source.cc
parent9a4d3534a10ce1984567a4f79b70cfa2aa024676 (diff)
downloadqpdf-18b34a564906c7ef36daefab081b44ebfd9ee64b.tar.zst
InputSource::unreadCh -- only unread most recently read character
This is all that ever worked. The test suite was trying to do something different from ClosedFileInputSource.
Diffstat (limited to 'libtests/closed_file_input_source.cc')
-rw-r--r--libtests/closed_file_input_source.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libtests/closed_file_input_source.cc b/libtests/closed_file_input_source.cc
index 7309ca31..f3e4f2ac 100644
--- a/libtests/closed_file_input_source.cc
+++ b/libtests/closed_file_input_source.cc
@@ -38,9 +38,9 @@ void do_tests(InputSource* is)
is->seek(521, SEEK_SET);
is->read(b, 1);
#else
- is->unreadCh('Q');
+ is->unreadCh('\n');
check("read unread character", 1 == is->read(b, 1));
- check("got character", 'Q' == b[0]);
+ check("got character", '\n' == b[0]);
#endif
check("last offset after read unread", 521 == is->getLastOffset());
is->seek(0, SEEK_END);