aboutsummaryrefslogtreecommitdiffstats
path: root/libtests/qutil.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libtests/qutil.cc')
-rw-r--r--libtests/qutil.cc3
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()