commit | 13cfb510714150590d5bd79ad0bf624b019f58b4 | [log] [tgz] |
---|---|---|
author | DRC <information@virtualgl.org> | Thu Feb 26 12:24:03 2015 -0600 |
committer | DRC <information@virtualgl.org> | Thu Feb 26 13:06:15 2015 -0600 |
tree | bd822b4bf6817f26099258d96c1a1ddd0ea95ab6 | |
parent | c67778faf65c3ddbb8692188fdeac30f7ec79963 [diff] [blame] |
encperf, decperf: catch fopen() errors This prevents unhandled exceptions if the file isn't found.
diff --git a/tests/decperf.cxx b/tests/decperf.cxx index 6714cb1..1d0c80c 100644 --- a/tests/decperf.cxx +++ b/tests/decperf.cxx
@@ -145,9 +145,9 @@ CConn *cc; double time; - cc = new CConn(fn); - try { + cc = new CConn(fn); + while (true) cc->processMsg(); } catch (rdr::EndOfStream e) {