aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2024-09-02 17:03:10 +0200
committerPierre Ossman <ossman@cendio.se>2024-11-06 21:06:27 +0100
commitf25de739ea359c2843a596457bcd22a28175b7a4 (patch)
treeae7bed3ed0d7e61938922540c7abdafbaa7e8938 /tests
parentbdeaeebd48ad39898b804e0083ed1456cc64f24b (diff)
downloadtigervnc-f25de739ea359c2843a596457bcd22a28175b7a4.tar.gz
tigervnc-f25de739ea359c2843a596457bcd22a28175b7a4.zip
Use what() to access exception description
Harmonize with the standard C++ exceptions.
Diffstat (limited to 'tests')
-rw-r--r--tests/perf/decperf.cxx4
-rw-r--r--tests/perf/encperf.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/perf/decperf.cxx b/tests/perf/decperf.cxx
index fb2390be..cc8b39d0 100644
--- a/tests/perf/decperf.cxx
+++ b/tests/perf/decperf.cxx
@@ -203,7 +203,7 @@ static struct stats runTest(const char *fn)
try {
cc = new CConn(fn);
} catch (rdr::Exception& e) {
- fprintf(stderr, "Failed to open rfb file: %s\n", e.str());
+ fprintf(stderr, "Failed to open rfb file: %s\n", e.what());
exit(1);
}
@@ -212,7 +212,7 @@ static struct stats runTest(const char *fn)
cc->processMsg();
} catch (rdr::EndOfStream& e) {
} catch (rdr::Exception& e) {
- fprintf(stderr, "Failed to run rfb file: %s\n", e.str());
+ fprintf(stderr, "Failed to run rfb file: %s\n", e.what());
exit(1);
}
diff --git a/tests/perf/encperf.cxx b/tests/perf/encperf.cxx
index c6e2d3b7..610fc4ec 100644
--- a/tests/perf/encperf.cxx
+++ b/tests/perf/encperf.cxx
@@ -373,7 +373,7 @@ static struct stats runTest(const char *fn)
try {
cc = new CConn(fn);
} catch (rdr::Exception& e) {
- fprintf(stderr, "Failed to open rfb file: %s\n", e.str());
+ fprintf(stderr, "Failed to open rfb file: %s\n", e.what());
exit(1);
}
@@ -382,7 +382,7 @@ static struct stats runTest(const char *fn)
cc->processMsg();
} catch (rdr::EndOfStream& e) {
} catch (rdr::Exception& e) {
- fprintf(stderr, "Failed to run rfb file: %s\n", e.str());
+ fprintf(stderr, "Failed to run rfb file: %s\n", e.what());
exit(1);
}