mirror of
https://github.com/chromium/crashpad.git
synced 2025-03-09 22:16:13 +00:00
make cdb test using SYSTEMROOT case-insensitive
R=mark@chromium.org BUG=crashpad:46 Review URL: https://codereview.chromium.org/1390913008 .
This commit is contained in:
parent
c3f4e2d8eb
commit
4212d3e4ad
@ -127,8 +127,8 @@ class CdbRun(object):
|
|||||||
'-c', command + ';q'
|
'-c', command + ';q'
|
||||||
])
|
])
|
||||||
|
|
||||||
def Check(self, pattern, message):
|
def Check(self, pattern, message, re_flags=0):
|
||||||
match_obj = re.search(pattern, self.out)
|
match_obj = re.search(pattern, self.out, re_flags)
|
||||||
if match_obj:
|
if match_obj:
|
||||||
# Matched. Consume up to end of match.
|
# Matched. Consume up to end of match.
|
||||||
self.out = self.out[match_obj.end(0):]
|
self.out = self.out[match_obj.end(0):]
|
||||||
@ -163,7 +163,8 @@ def RunTests(cdb_path, dump_path, pipe_name):
|
|||||||
pipe_name_escaped = pipe_name.replace('\\', '\\\\')
|
pipe_name_escaped = pipe_name.replace('\\', '\\\\')
|
||||||
out.Check(r'CommandLine: *\'.*crashy_program.exe *' + pipe_name_escaped,
|
out.Check(r'CommandLine: *\'.*crashy_program.exe *' + pipe_name_escaped,
|
||||||
'some PEB data is correct')
|
'some PEB data is correct')
|
||||||
out.Check(r'SystemRoot=C:\\Windows', 'some of environment captured')
|
out.Check(r'SystemRoot=C:\\Windows', 'some of environment captured',
|
||||||
|
re.IGNORECASE)
|
||||||
|
|
||||||
out = CdbRun(cdb_path, dump_path, '!teb')
|
out = CdbRun(cdb_path, dump_path, '!teb')
|
||||||
out.Check(r'TEB at', 'found the TEB')
|
out.Check(r'TEB at', 'found the TEB')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user