This patch ensures runTestHarness returns either EXIT_FAILURE or EXIT_SUCCESS to avoid undefined behaviour.