aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2015-03-03 16:42:15 +0100
committerPierre Ossman <ossman@cendio.se>2015-03-03 16:42:15 +0100
commit86475a684dd111fd3c0fbdf177fc6e7f01708045 (patch)
treed942cebb69d37b73cf03c5f8643ba5e7f7c1ccf7 /tests
parentba6fbfe368bc2f02a2947138fda0c0d170ae1cf3 (diff)
downloadtigervnc-86475a684dd111fd3c0fbdf177fc6e7f01708045.tar.gz
tigervnc-86475a684dd111fd3c0fbdf177fc6e7f01708045.zip
Move things around slightly so the compiler can track cc
Diffstat (limited to 'tests')
-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) {