summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-09-11 20:39:07 (GMT)
committerBrad King <brad.king@kitware.com>2009-09-11 20:39:07 (GMT)
commit2541f30287d597db0a19eaff20fdd16fcd54907a (patch)
tree02b4af9ebdac583e8cd5bfe53fd0933e0fa4211c /Tests
parent8c24c1dcc3e6ab73d1127b17399157271635d5ff (diff)
downloadCMake-2541f30287d597db0a19eaff20fdd16fcd54907a.zip
CMake-2541f30287d597db0a19eaff20fdd16fcd54907a.tar.gz
CMake-2541f30287d597db0a19eaff20fdd16fcd54907a.tar.bz2
Test that CTest can handle missing newlines
We create test 'CTest.NoNewline' to print output with no newline. This tests CTest's ability to handle a missing newline.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt
index 026b147..f39f462 100644
--- a/Tests/CMakeLists.txt
+++ b/Tests/CMakeLists.txt
@@ -897,6 +897,10 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=CVS -P ${CMake_SOURCE_DIR}/Utilities/Rel
LIST(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/BundleGeneratorTest")
ENDIF(APPLE AND CTEST_TEST_CPACK)
+ # Make sure CTest can handle a test with no newline in output.
+ ADD_TEST(CTest.NoNewline
+ ${CMAKE_COMMAND} -E echo_append "This line has no newline!")
+
# A simple test for ctest in script mode
CONFIGURE_FILE("${CMake_SOURCE_DIR}/Tests/CTestScriptMode/CTestTestScriptMode.cmake.in"
"${CMake_BINARY_DIR}/Tests/CTestScriptMode/CTestTestScriptMode.cmake" @ONLY)