1

I'm using cmake and ctest for testing. Tests write their output to specific files, and i can include some debugging info if i want to. This works even when tests fail.

However, when tests time out (i think there is an infinite loop somewhere), the output files are created, but empty. I'm certain there should already be some output before the program gets stuck. I assume some writing buffer doesn't get flushed or something because of the timeout.

So now for my question: how can i get the output when the tests time out? Some way to get around the ctest output mechanism and write directly to the console would also be acceptible. I just need to be able to find out where in the code it gets stuck.

For reference, I'm talking about the tests in this repository. I've also tried out the answers in Using CMake, how do I get verbose output from CTest? to no avail.

Edit: I really feel like an idiot now, I can just call the test executable directly

Thijs Steel
  • 1,190
  • 7
  • 16

0 Answers0