Re #8398. Missed out check for failure on first ctest call.
Merge branch 'bugfix/9398_windows_jenkins_test_fail_builds' into develop