1 SET(TEST_FILE CMakeFiles/create_file.dir/create_file.i)
2 FILE(READ ${TEST_FILE} CONTENTS)
3 IF("${CONTENTS}" MATCHES "Unable to close")
4 MESSAGE(STATUS "${TEST_FILE} created successfully!")
5 ELSE("${CONTENTS}" MATCHES "Unable to close")
6 MESSAGE(FATAL_ERROR "${TEST_FILE} creation failed!")
7 ENDIF("${CONTENTS}" MATCHES "Unable to close")