summaryrefslogtreecommitdiffstats
path: root/libtests/qutil.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libtests/qutil.cc')
-rw-r--r--libtests/qutil.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/libtests/qutil.cc b/libtests/qutil.cc
index dedd73d1..5e4dd196 100644
--- a/libtests/qutil.cc
+++ b/libtests/qutil.cc
@@ -62,12 +62,10 @@ void os_wrapper_test()
void fopen_wrapper_test()
{
- FILE* f = 0;
try
{
std::cout << "before fopen" << std::endl;
- f = QUtil::fopen_wrapper("fopen file",
- fopen("/this/file/does/not/exist", "r")); // XXXX
+ FILE* f = QUtil::safe_fopen("/this/file/does/not/exist", "r");
std::cout << "after fopen" << std::endl;
(void) fclose(f);
}