title: ctest won't output stdout from printf if test fails
body: <p>In a quite simple test-case, the output of printf() is not shown, if the test fails. I use µunit as a framework and the test routine itself is trivial:</p>
  <pre><code>static MunitResult test(...)
  {
      // Some variable initialisation
      printf(&quot;Test running...\n&quot;);
  
      //Do the test
      bool bResult = tested_method();
      munit_assert(bResult == true);
  }
  </code></pre>
  <p>If I comment out the assertion, i.e. the test succeeds, the printf-output is shown. It isn't if the test fails. Running other test routines works as expected and shows their output from printf() correctly.</p>
  <p>I invoke ctest like this to run the test:</p>
  <pre><code>ctest -V --output-on-failure -R '.*nameoftest.*'
  </code></pre>
  <p>The whole is running inside a docker container on Windows 10.</p>
  <p>How can I make ctest display all output the test-routine sends on stdout?
  Thanks for your help and have a nice day!</p>