aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/decperf.cxx5
-rw-r--r--tests/encperf.cxx5
2 files changed, 10 insertions, 0 deletions
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) {