ctest: Exit 1 when argc == 1 and no input file exists

Fixes: #26759
7 files changed