summaryrefslogtreecommitdiff
path: root/Tests/ComplexOneConfig/Library/test_preprocess.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/ComplexOneConfig/Library/test_preprocess.cmake')
-rw-r--r--Tests/ComplexOneConfig/Library/test_preprocess.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/ComplexOneConfig/Library/test_preprocess.cmake b/Tests/ComplexOneConfig/Library/test_preprocess.cmake
new file mode 100644
index 000000000..d2d9fc652
--- /dev/null
+++ b/Tests/ComplexOneConfig/Library/test_preprocess.cmake
@@ -0,0 +1,7 @@
+SET(TEST_FILE CMakeFiles/create_file.dir/create_file.i)
+FILE(READ ${TEST_FILE} CONTENTS)
+IF("${CONTENTS}" MATCHES "Unable to close")
+ MESSAGE(STATUS "${TEST_FILE} created successfully!")
+ELSE("${CONTENTS}" MATCHES "Unable to close")
+ MESSAGE(FATAL_ERROR "${TEST_FILE} creation failed!")
+ENDIF("${CONTENTS}" MATCHES "Unable to close")