CTest is failing my tutorial tests 2 through 5
As I'm going through the CMake Tutorial, 4 of the 5 tests are failing and it seems that the regex logic isn't quite right?
(I am just pasting in the information for Step 2.)
Testing Section of my CMakeLists.txt
# does the application run
add_test (TutorialRuns Tutorial 25)
# does it sqrt of 25
add_test (TutorialComp25 Tutorial 25)
set_tests_properties (TutorialComp25 PROPERTIES PASS_REGULAR_EXPRESSION “25 is 5”)
My LastTest.log
2/5 Testing: TutorialComp25
2/5 Test: TutorialComp25
Command: "/Users/lee_vettleson/code/cmake-tutorial/release/Tutorial" "25"
Directory: /Users/lee_vettleson/code/cmake-tutorial/release
"TutorialComp25" start time: Dec 15 11:55 CST
Output:
----------------------------------------------------------
The square root of 25 is 5
<end of output>
Test time = 0.00 sec
----------------------------------------------------------
Test Fail Reason:
Required regular expression not found.Regex=[“25
]
"TutorialComp25" end time: Dec 15 11:55 CST
"TutorialComp25" time elapsed: 00:00:00
----------------------------------------------------------
I'm running CMake 3.7.0 on a MacOS, if that is important.
P.S. The formatting of the testing code block on the tutorial page appears incorrect. All the testing statements (and comments) are all on one line.