Skip to content

Commit f1108b0

Browse files
committed
Drop test in process save core minidump
1 parent ebc4e59 commit f1108b0

File tree

1 file changed

+1
-37
lines changed

1 file changed

+1
-37
lines changed

lldb/test/API/functionalities/process_save_core_minidump/TestProcessSaveCoreMinidump.py

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from lldbsuite.test.lldbtest import *
99
from lldbsuite.test import lldbutil
1010

11+
1112
class ProcessSaveCoreMinidumpTestCase(TestBase):
1213
def verify_core_file(
1314
self,
@@ -494,27 +495,16 @@ def test_save_minidump_custom_save_style_duplicated_regions(self):
494495
self.assertTrue(self.dbg.DeleteTarget(target))
495496

496497
@skipUnlessPlatform(["linux"])
497-
<<<<<<< HEAD
498498
def minidump_deleted_on_save_failure(self):
499499
"""Test that verifies the minidump file is deleted after an error"""
500500

501501
self.build()
502502
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)
512503
try:
513504
target = self.dbg.CreateTarget(exe)
514505
process = target.LaunchSimple(
515506
None, None, self.get_process_working_directory()
516507
)
517-
<<<<<<< HEAD
518508
self.assertState(process.GetState(), lldb.eStateStopped)
519509

520510
custom_file = self.getBuildArtifact("core.should.be.deleted.custom.dmp")
@@ -575,29 +565,3 @@ def minidump_deterministic_difference(self):
575565

576566
finally:
577567
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

Comments
 (0)