Browse Source

Move things around slightly so the compiler can track cc

tags/v1.4.90
Pierre Ossman 9 years ago
parent
commit
86475a684d
2 changed files with 10 additions and 0 deletions
  1. 5
    0
      tests/decperf.cxx
  2. 5
    0
      tests/encperf.cxx

+ 5
- 0
tests/decperf.cxx View File

@@ -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) {

+ 5
- 0
tests/encperf.cxx View File

@@ -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) {

Loading…
Cancel
Save