Chromium Code Reviews| OLD | NEW | 
|---|---|
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python | 
| 2 | 2 | 
| 3 # Copyright 2015 The Crashpad Authors. All rights reserved. | 3 # Copyright 2015 The Crashpad Authors. All rights reserved. | 
| 4 # | 4 # | 
| 5 # Licensed under the Apache License, Version 2.0 (the "License"); | 5 # Licensed under the Apache License, Version 2.0 (the "License"); | 
| 6 # you may not use this file except in compliance with the License. | 6 # you may not use this file except in compliance with the License. | 
| 7 # You may obtain a copy of the License at | 7 # You may obtain a copy of the License at | 
| 8 # | 8 # | 
| 9 # http://www.apache.org/licenses/LICENSE-2.0 | 9 # http://www.apache.org/licenses/LICENSE-2.0 | 
| 10 # | 10 # | 
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 170 out.Check(r'TEB at', 'found the TEB') | 170 out.Check(r'TEB at', 'found the TEB') | 
| 171 out.Check(r'ExceptionList:\s+[0-9a-fA-F]+', 'some valid teb data') | 171 out.Check(r'ExceptionList:\s+[0-9a-fA-F]+', 'some valid teb data') | 
| 172 out.Check(r'LastErrorValue:\s+2', 'correct LastErrorValue') | 172 out.Check(r'LastErrorValue:\s+2', 'correct LastErrorValue') | 
| 173 | 173 | 
| 174 out = CdbRun(cdb_path, dump_path, '!gle') | 174 out = CdbRun(cdb_path, dump_path, '!gle') | 
| 175 out.Check('LastErrorValue: \(Win32\) 0x2 \(2\) - The system cannot find the ' | 175 out.Check('LastErrorValue: \(Win32\) 0x2 \(2\) - The system cannot find the ' | 
| 176 'file specified.', '!gle gets last error') | 176 'file specified.', '!gle gets last error') | 
| 177 out.Check('LastStatusValue: \(NTSTATUS\) 0xc000000f - {File Not Found} The ' | 177 out.Check('LastStatusValue: \(NTSTATUS\) 0xc000000f - {File Not Found} The ' | 
| 178 'file %hs does not exist.', '!gle gets last ntstatus') | 178 'file %hs does not exist.', '!gle gets last ntstatus') | 
| 179 | 179 | 
| 180 # Locks. | 180 # Locks. | 
| 
 
Mark Mentovai
2015/10/15 00:14:56
There isn’t a # comment for any of the other class
 
scottmg
2015/10/15 18:22:23
Done.
 
 | |
| 181 if False: # The code for these isn't landed yet. | 181 out = CdbRun(cdb_path, dump_path, '!locks') | 
| 182 out = CdbRun(cdb_path, dump_path, '!locks') | 182 out.Check(r'CritSec crashy_program!crashpad::`anonymous namespace\'::' | 
| 183 out.Check(r'CritSec crashy_program!crashpad::`anonymous namespace\'::' | 183 r'g_test_critical_section', 'lock was captured') | 
| 184 r'g_test_critical_section', 'lock was captured') | 184 out.Check(r'\*\*\* Locked', 'lock debug info was captured, and is locked') | 
| 185 out.Check(r'\*\*\* Locked', 'lock debug info was captured, and is locked') | |
| 186 | 185 | 
| 187 | 186 | 
| 188 def main(args): | 187 def main(args): | 
| 189 try: | 188 try: | 
| 190 if len(args) != 1: | 189 if len(args) != 1: | 
| 191 print >>sys.stderr, 'must supply binary dir' | 190 print >>sys.stderr, 'must supply binary dir' | 
| 192 return 1 | 191 return 1 | 
| 193 | 192 | 
| 194 cdb_path = GetCdbPath() | 193 cdb_path = GetCdbPath() | 
| 195 if not cdb_path: | 194 if not cdb_path: | 
| (...skipping 15 matching lines...) Expand all Loading... | |
| 211 | 210 | 
| 212 RunTests(cdb_path, dump_path, pipe_name) | 211 RunTests(cdb_path, dump_path, pipe_name) | 
| 213 | 212 | 
| 214 return 0 | 213 return 0 | 
| 215 finally: | 214 finally: | 
| 216 CleanUpTempDirs() | 215 CleanUpTempDirs() | 
| 217 | 216 | 
| 218 | 217 | 
| 219 if __name__ == '__main__': | 218 if __name__ == '__main__': | 
| 220 sys.exit(main(sys.argv[1:])) | 219 sys.exit(main(sys.argv[1:])) | 
| OLD | NEW |