|
8 | 8 | from lldbsuite.test.lldbtest import * |
9 | 9 | from lldbsuite.test import lldbutil |
10 | 10 |
|
| 11 | + |
11 | 12 | class ProcessSaveCoreMinidumpTestCase(TestBase): |
12 | 13 | def verify_core_file( |
13 | 14 | self, |
@@ -494,27 +495,16 @@ def test_save_minidump_custom_save_style_duplicated_regions(self): |
494 | 495 | self.assertTrue(self.dbg.DeleteTarget(target)) |
495 | 496 |
|
496 | 497 | @skipUnlessPlatform(["linux"]) |
497 | | -<<<<<<< HEAD |
498 | 498 | def minidump_deleted_on_save_failure(self): |
499 | 499 | """Test that verifies the minidump file is deleted after an error""" |
500 | 500 |
|
501 | 501 | self.build() |
502 | 502 | exe = self.getBuildArtifact("a.out") |
503 | | -======= |
504 | | - def test_save_minidump_breakpoint(self): |
505 | | - """Test that verifies a custom and unspecified save style fails for |
506 | | - containing no data to save""" |
507 | | - |
508 | | - self.build() |
509 | | - exe = self.getBuildArtifact("a.out") |
510 | | - custom_file = self.getBuildArtifact("core.custom.dmp") |
511 | | ->>>>>>> 099f017208dd (Remove the static set and add test) |
512 | 503 | try: |
513 | 504 | target = self.dbg.CreateTarget(exe) |
514 | 505 | process = target.LaunchSimple( |
515 | 506 | None, None, self.get_process_working_directory() |
516 | 507 | ) |
517 | | -<<<<<<< HEAD |
518 | 508 | self.assertState(process.GetState(), lldb.eStateStopped) |
519 | 509 |
|
520 | 510 | custom_file = self.getBuildArtifact("core.should.be.deleted.custom.dmp") |
@@ -575,29 +565,3 @@ def minidump_deterministic_difference(self): |
575 | 565 |
|
576 | 566 | finally: |
577 | 567 | self.assertTrue(self.dbg.DeleteTarget(target)) |
578 | | -======= |
579 | | - breakpoint = target.BreakpointCreateByName("main") |
580 | | - self.assertState(process.GetState(), lldb.eStateStopped) |
581 | | - |
582 | | - options = lldb.SBSaveCoreOptions() |
583 | | - options.SetOutputFile(lldb.SBFileSpec(custom_file)) |
584 | | - options.SetPluginName("minidump") |
585 | | - options.SetStyle(lldb.eSaveCoreStackOnly) |
586 | | - |
587 | | - error = process.SaveCore(options) |
588 | | - self.assertTrue(error.Success()) |
589 | | - foundSigInt = False |
590 | | - for thread_idx in range(process.GetNumThreads()): |
591 | | - thread = process.GetThreadAtIndex(thread_idx) |
592 | | - stop = thread.stop_reason |
593 | | - if stop == 1: |
594 | | - foundSigInt = True |
595 | | - break |
596 | | - |
597 | | - self.assertTrue(foundSigInt, "Breakpoint not included in minidump.") |
598 | | - |
599 | | - finally: |
600 | | - self.assertTrue(self.dbg.DeleteTarget(target)) |
601 | | - if os.path.isfile(custom_file): |
602 | | - os.unlink(custom_file) |
603 | | ->>>>>>> 099f017208dd (Remove the static set and add test) |
0 commit comments