diff options
author | Jay Berkenbilt <ejb@ql.org> | 2021-12-29 16:36:15 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2021-12-29 19:41:02 +0100 |
commit | af91b5b5841aaa34ebf2d2062041c874425f474f (patch) | |
tree | e8d34f402e67cf532fbfa775c4be31e68366b77c /libtests | |
parent | ac0060ac38ecf4fa380f49fd1e40ebaabb479596 (diff) | |
download | qpdf-af91b5b5841aaa34ebf2d2062041c874425f474f.tar.zst |
Add QUtil::file_can_be_opened
Diffstat (limited to 'libtests')
-rw-r--r-- | libtests/qutil.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libtests/qutil.cc b/libtests/qutil.cc index f52ec2dc..46eb840c 100644 --- a/libtests/qutil.cc +++ b/libtests/qutil.cc @@ -203,6 +203,9 @@ void fopen_wrapper_test() std::cout << "exception: " << s.what() << std::endl; assert(s.getErrno() != 0); } + + assert(QUtil::file_can_be_opened("qutil.out")); + assert(! QUtil::file_can_be_opened("/does/not/exist")); } void getenv_test() |