Index: snapshot/win/end_to_end_test.py |
diff --git a/snapshot/win/end_to_end_test.py b/snapshot/win/end_to_end_test.py |
index 75dafde9730d3c6ea49476756636ab9bff1b24b3..1a66045925a1b629b64749fd3efa553163de0774 100644 |
--- a/snapshot/win/end_to_end_test.py |
+++ b/snapshot/win/end_to_end_test.py |
@@ -15,6 +15,7 @@ |
# limitations under the License. |
import os |
+import platform |
import random |
import re |
import subprocess |
@@ -182,7 +183,9 @@ def RunTests(cdb_path, dump_path, pipe_name): |
out = CdbRun(cdb_path, dump_path, '!locks') |
out.Check(r'CritSec crashy_program!crashpad::`anonymous namespace\'::' |
r'g_test_critical_section', 'lock was captured') |
- out.Check(r'\*\*\* Locked', 'lock debug info was captured, and is locked') |
+ if float(platform.win32_ver()[0]) != 7: |
+ # We can't allocate CSs with .DebugInfo on Win 7. |
Mark Mentovai
2015/10/16 19:42:47
Spell out critical section.
scottmg
2015/10/16 20:04:11
Done.
|
+ out.Check(r'\*\*\* Locked', 'lock debug info was captured, and is locked') |
def main(args): |