summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CTestCommandLine/TestOutputTruncation_middle-check.cmake
diff options
context:
space:
mode:
authorFrank Winklmeier <frank.winklmeier@cern.ch>2022-09-05 11:42:40 (GMT)
committerFrank Winklmeier <frank.winklmeier@cern.ch>2022-09-05 11:42:40 (GMT)
commitcb55d5e730f8f40c2ba5ecf4771575117c56ef0c (patch)
tree7112707c7d00f249840315ababc64fef299633dd /Tests/RunCMake/CTestCommandLine/TestOutputTruncation_middle-check.cmake
parent0e7bb4e783f596a1995d3a713682e6a54a41781e (diff)
downloadCMake-cb55d5e730f8f40c2ba5ecf4771575117c56ef0c.zip
CMake-cb55d5e730f8f40c2ba5ecf4771575117c56ef0c.tar.gz
CMake-cb55d5e730f8f40c2ba5ecf4771575117c56ef0c.tar.bz2
RunCMakeTest: fix Truncation test definition
The `ctest_test` and `CTestCommandLine` truncation tests had multiple problems: - escape expected result string to avoid regex matching - specify the truncation size - pass the truncation mode correctly into the test definition - use unique test names Issue: #23868
Diffstat (limited to 'Tests/RunCMake/CTestCommandLine/TestOutputTruncation_middle-check.cmake')
-rw-r--r--Tests/RunCMake/CTestCommandLine/TestOutputTruncation_middle-check.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/RunCMake/CTestCommandLine/TestOutputTruncation_middle-check.cmake b/Tests/RunCMake/CTestCommandLine/TestOutputTruncation_middle-check.cmake
new file mode 100644
index 0000000..6065c30
--- /dev/null
+++ b/Tests/RunCMake/CTestCommandLine/TestOutputTruncation_middle-check.cmake
@@ -0,0 +1 @@
+include(${RunCMake_SOURCE_DIR}/TestOutputTruncation-check.cmake)