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..0e115e34fe68771b8f167c84f2183218404a86a1 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]) >= 8: |
+ # We can only allocate CSs with forced .DebugInfo on Win 8 and higher. |
+ out.Check(r'\*\*\* Locked', 'lock debug info was captured, and is locked') |
def main(args): |