aboutsummaryrefslogtreecommitdiffstats
path: root/test/gtest_output_test.py
diff options
context:
space:
mode:
authorshiqian <shiqian@861a406c-534a-0410-8894-cb66d6ee9925>2008-07-23 20:32:11 +0000
committershiqian <shiqian@861a406c-534a-0410-8894-cb66d6ee9925>2008-07-23 20:32:11 +0000
commit253d2bc5760533c136f5b1b34b8c6f03d79fc538 (patch)
tree38d7aba99dbe9ca9cfb0b53924735c9d8054bba9 /test/gtest_output_test.py
parentb75872639683cf572253f20863982324b113205e (diff)
downloadgoogletest-253d2bc5760533c136f5b1b34b8c6f03d79fc538.tar.gz
googletest-253d2bc5760533c136f5b1b34b8c6f03d79fc538.tar.bz2
googletest-253d2bc5760533c136f5b1b34b8c6f03d79fc538.zip
Makes the output understandable by VS when compiled by MSVC.
Diffstat (limited to 'test/gtest_output_test.py')
-rwxr-xr-xtest/gtest_output_test.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/gtest_output_test.py b/test/gtest_output_test.py
index 7ecb4d1a..ee766ffd 100755
--- a/test/gtest_output_test.py
+++ b/test/gtest_output_test.py
@@ -78,11 +78,12 @@ def RemoveLocations(output):
Returns:
output with all file location info (in the form of
- 'DIRECTORY/FILE_NAME:LINE_NUMBER: ') replaced by
+ 'DIRECTORY/FILE_NAME:LINE_NUMBER: 'or
+ 'DIRECTORY\\FILE_NAME(LINE_NUMBER): ') replaced by
'FILE_NAME:#: '.
"""
- return re.sub(r'.*[/\\](.+)\:\d+\: ', r'\1:#: ', output)
+ return re.sub(r'.*[/\\](.+)(\:\d+|\(\d+\))\: ', r'\1:#: ', output)
def RemoveStackTraces(output):