0

I run an exe that benchmarks C++ code on my Windows Embedded Compact (WEC2013) i.MX6 platform over telnet. Results go to the serial port and I cannot redirect them to a file, which would be ideal.

My benchmark uses QBENCHMARK and works as expected on Windows desktop. -o filename also works on Windows desktop.

Using qInstallMessageHandler() to redirect output to stdout shows qDebug() output from tested functions on the telnet console (and lots of it!), but test results continue on the serial port. Combining this with -o filename still does not create an output file.

Any suggestions on how I can get benchmark output into a file?

pixelgrease
  • 1,940
  • 23
  • 26
  • "-csv", "-xml", "-xunitxml", or '-lightxml" command-line arguments work, but "-txt" does not. "-csv" is the easiest to use and if I cannot make any more progress I'll put that as an answer. I'm reading Qt 5.6 source code and it's helping, but still do not understand why logging output for "txt" goes to the serial port. – pixelgrease Mar 17 '23 at 17:22

0 Answers0