Tests: Add cases covering bad ctest output truncation types

Issue: #23869
7 files changed