Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(298)

Unified Diff: functional/pdf.py

Issue 6265008: Ensure that renderer crashes in pdf runner results in test failure... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/test/
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: functional/pdf.py
===================================================================
--- functional/pdf.py (revision 71499)
+++ functional/pdf.py (working copy)
@@ -37,6 +37,8 @@
properties = self.GetBrowserInfo()['properties']
if properties['branding'] != 'Google Chrome':
return
+ breakpad_folder = properties['DIR_CRASH_DUMPS']
+ old_dmp_files = glob.glob(os.path.join(breakpad_folder, '*.dmp'))
pdf_files_path = os.path.join(self.DataDir(), 'pyauto_private', 'pdf')
pdf_files = glob.glob(os.path.join(pdf_files_path, '*.pdf'))
for pdf_file in pdf_files:
@@ -52,6 +54,10 @@
# Assert that there is at least 1 browser window.
self.assertTrue(self.GetBrowserWindowCount(),
'Browser crashed, no window is open')
+ # Verify there're no crash dump files
+ for dmp_file in glob.glob(os.path.join(breakpad_folder, '*.dmp')):
+ self.assertTrue(dmp_file in old_dmp_files,
+ msg='Crash dump %s found' % dmp_file)
sunandt 2011/01/18 20:04:26 What if there are dump files from old runs or prev
Nirnimesh 2011/01/18 20:11:48 Which is why I make a copy of old dmp files in lin
if __name__ == '__main__':
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698