diff options
author | DRC <information@virtualgl.org> | 2015-02-26 12:24:03 -0600 |
---|---|---|
committer | DRC <information@virtualgl.org> | 2015-02-26 13:06:15 -0600 |
commit | 13cfb510714150590d5bd79ad0bf624b019f58b4 (patch) | |
tree | bd822b4bf6817f26099258d96c1a1ddd0ea95ab6 /tests/decperf.cxx | |
parent | c67778faf65c3ddbb8692188fdeac30f7ec79963 (diff) | |
download | tigervnc-13cfb510714150590d5bd79ad0bf624b019f58b4.tar.gz tigervnc-13cfb510714150590d5bd79ad0bf624b019f58b4.zip |
encperf, decperf: catch fopen() errors
This prevents unhandled exceptions if the file isn't found.
Diffstat (limited to 'tests/decperf.cxx')
-rw-r--r-- | tests/decperf.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/decperf.cxx b/tests/decperf.cxx index 6714cb10..1d0c80c4 100644 --- a/tests/decperf.cxx +++ b/tests/decperf.cxx @@ -145,9 +145,9 @@ static double runTest(const char *fn) CConn *cc; double time; - cc = new CConn(fn); - try { + cc = new CConn(fn); + while (true) cc->processMsg(); } catch (rdr::EndOfStream e) { |