From 86475a684dd111fd3c0fbdf177fc6e7f01708045 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 3 Mar 2015 16:42:15 +0100 Subject: [PATCH] Move things around slightly so the compiler can track cc --- tests/decperf.cxx | 5 +++++ tests/encperf.cxx | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/tests/decperf.cxx b/tests/decperf.cxx index 5763976c..fe7b0322 100644 --- a/tests/decperf.cxx +++ b/tests/decperf.cxx @@ -147,7 +147,12 @@ static double runTest(const char *fn) try { cc = new CConn(fn); + } catch (rdr::Exception e) { + fprintf(stderr, "Failed to open rfb file: %s\n", e.str()); + exit(1); + } + try { while (true) cc->processMsg(); } catch (rdr::EndOfStream e) { diff --git a/tests/encperf.cxx b/tests/encperf.cxx index bbaa8fb5..6b1119ab 100644 --- a/tests/encperf.cxx +++ b/tests/encperf.cxx @@ -339,7 +339,12 @@ static double runTest(const char *fn, double& ratio, unsigned long long& bytes, try { cc = new CConn(fn); + } catch (rdr::Exception e) { + fprintf(stderr, "Failed to open rfb file: %s\n", e.str()); + exit(1); + } + try { while (true) cc->processMsg(); } catch (rdr::EndOfStream e) { -- 2.39.5