RunCMakeTest: fix Truncation test definition
The ctest_test
version of the Truncation test had multiple problems:
- escape expected result string to avoid regex matching
- specify the truncation size
- pass the truncation mode correctly into the test definition
Issue: #23868
Backport: release
Edited by Craig Scott