this line should be deleted, because ctest will print the error. This was my mistake.