OLD | NEW |
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import grp, logging, os, pwd, re, stat, subprocess | 5 import grp, logging, os, pwd, re, stat, subprocess |
6 from signal import SIGSEGV | 6 from signal import SIGSEGV |
7 from autotest_lib.client.bin import site_crash_test, site_utils, test | 7 from autotest_lib.client.bin import site_crash_test, site_utils, test |
8 from autotest_lib.client.common_lib import error, utils | 8 from autotest_lib.client.common_lib import error, utils |
9 | 9 |
10 _CORE_PATTERN = '/proc/sys/kernel/core_pattern' | 10 _CORE_PATTERN = '/proc/sys/kernel/core_pattern' |
11 _LEAVE_CORE_PATH = '/root/.leave_core' | 11 _LEAVE_CORE_PATH = '/root/.leave_core' |
12 _MAX_CRASH_DIRECTORY_SIZE = 8 | 12 _MAX_CRASH_DIRECTORY_SIZE = 32 |
13 | 13 |
14 | 14 |
15 class logging_UserCrash(site_crash_test.CrashTest): | 15 class logging_UserCrash(site_crash_test.CrashTest): |
16 version = 1 | 16 version = 1 |
17 | 17 |
18 | 18 |
19 def setup(self): | 19 def setup(self): |
20 os.chdir(self.srcdir) | 20 os.chdir(self.srcdir) |
21 utils.make('clean all') | 21 utils.make('clean all') |
22 | 22 |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 def run_once(self): | 449 def run_once(self): |
450 self.run_crash_tests(['reporter_startup', | 450 self.run_crash_tests(['reporter_startup', |
451 'reporter_shutdown', | 451 'reporter_shutdown', |
452 'no_crash', | 452 'no_crash', |
453 'chronos_nobreakpad_crasher', | 453 'chronos_nobreakpad_crasher', |
454 'root_nobreakpad_crasher', | 454 'root_nobreakpad_crasher', |
455 'max_enqueued_crashes', | 455 'max_enqueued_crashes', |
456 'core_file_persists_in_debug', | 456 'core_file_persists_in_debug', |
457 'core_file_removed_in_production'], | 457 'core_file_removed_in_production'], |
458 initialize_crash_reporter = True) | 458 initialize_crash_reporter = True) |
OLD | NEW |