diff options
author | Aaron Jacobs <jacobsa@google.com> | 2023-03-23 03:19:06 (GMT) |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-03-23 03:19:44 (GMT) |
commit | 5fce13091d223069436ad7a5aad53f026b0f2041 (patch) | |
tree | 616ce824189315035025f25977ebcc0a5be59859 /googletest/test/googletest-output-test.py | |
parent | 974e18ee6f146a2418f9cea83170c640e7d622d6 (diff) | |
download | googletest-5fce13091d223069436ad7a5aad53f026b0f2041.zip googletest-5fce13091d223069436ad7a5aad53f026b0f2041.tar.gz googletest-5fce13091d223069436ad7a5aad53f026b0f2041.tar.bz2 |
gtest.cc: add a newline after a failure when there is no OS stack trace.
This makes the behavior consistent when GTEST_STACK_TRACE_DEPTH is set to zero
and not: there is always vertical whitespace separating failure messages.
PiperOrigin-RevId: 518744611
Change-Id: I5b4af40633849850660504c3f497a76601d4311d
Diffstat (limited to 'googletest/test/googletest-output-test.py')
-rwxr-xr-x | googletest/test/googletest-output-test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/googletest/test/googletest-output-test.py b/googletest/test/googletest-output-test.py index 347b854..6d80d53 100755 --- a/googletest/test/googletest-output-test.py +++ b/googletest/test/googletest-output-test.py @@ -132,7 +132,7 @@ def RemoveStackTraces(output): """Removes all traces of stack traces from a Google Test program's output.""" # *? means "find the shortest string that matches". - return re.sub(r'Stack trace:(.|\n)*?\n\n', '', output) + return re.sub(r'Stack trace:(.|\n)*?\n', '', output) def RemoveTime(output): |