Check for the whole expected output string rather than particular substrings. This verifies that newlines are stripped for any <CTestLabel> lines found in the test output.
Parse test output for <CTestLabel>...</CTestLabel>. If found, add this value to the list of labels associated with this test.