From ac4deac1873ca1bb570ffd479ed2cc1010762f89 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Thu, 28 Feb 2013 16:45:11 -0500 Subject: Call QUtil::safe_fopen in place of fopen fopen was previuosly called wrapped by QUtil::fopen_wrapper, but QUtil::safe_fopen does this itself, which is less cumbersome. --- libtests/qutil.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libtests/qutil.cc') 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); } -- cgit v1.2.3-54-g00ecf