Tests: Fix RunCMake.CTestCommandLine expected output time matching

When matching ctest command-line output, we must account for the
formatting of times that take 10 seconds or more.  The values are
right-justified, so use " +" to match any amount of space before them.
This commit is contained in:
Brad King 2015-03-31 16:04:29 -04:00
parent 6bce027662
commit b687d67281
1 changed files with 11 additions and 11 deletions

View File

@ -1,26 +1,26 @@
^Test project .*/Tests/RunCMake/CTestCommandLine/repeat-until-fail-build ^Test project .*/Tests/RunCMake/CTestCommandLine/repeat-until-fail-build
Start 1: initialization Start 1: initialization
Test #1: initialization ................... Passed [0-9.]+ sec Test #1: initialization ................... Passed +[0-9.]+ sec
Start 1: initialization Start 1: initialization
Test #1: initialization ................... Passed [0-9.]+ sec Test #1: initialization ................... Passed +[0-9.]+ sec
Start 1: initialization Start 1: initialization
1/4 Test #1: initialization ................... Passed [0-9.]+ sec 1/4 Test #1: initialization ................... Passed +[0-9.]+ sec
Start 2: test1 Start 2: test1
Test #2: test1 ............................ Passed [0-9.]+ sec Test #2: test1 ............................ Passed +[0-9.]+ sec
Start 2: test1 Start 2: test1
Test #2: test1 ............................\*\*\*Failed [0-9.]+ sec Test #2: test1 ............................\*\*\*Failed +[0-9.]+ sec
Start 3: hello Start 3: hello
Test #3: hello ............................ Passed [0-9.]+ sec Test #3: hello ............................ Passed +[0-9.]+ sec
Start 3: hello Start 3: hello
Test #3: hello ............................ Passed [0-9.]+ sec Test #3: hello ............................ Passed +[0-9.]+ sec
Start 3: hello Start 3: hello
3/4 Test #3: hello ............................ Passed [0-9.]+ sec 3/4 Test #3: hello ............................ Passed +[0-9.]+ sec
Start 4: goodbye Start 4: goodbye
Test #4: goodbye .......................... Passed [0-9.]+ sec Test #4: goodbye .......................... Passed +[0-9.]+ sec
Start 4: goodbye Start 4: goodbye
Test #4: goodbye .......................... Passed [0-9.]+ sec Test #4: goodbye .......................... Passed +[0-9.]+ sec
Start 4: goodbye Start 4: goodbye
4/4 Test #4: goodbye .......................... Passed [0-9.]+ sec 4/4 Test #4: goodbye .......................... Passed +[0-9.]+ sec
+ +
75% tests passed, 1 tests failed out of 4 75% tests passed, 1 tests failed out of 4
+ +