Skip to content

[lldb][test] Re-enable bounds safety tests #9961

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,10 @@ def __run(self, build_dict):
self.expect("expr array_of_bounds_safety_pointers[1]", patterns = [zero_init_pattern])
self.expect("frame variable array_of_bounds_safety_pointers[1]", patterns = [zero_init_pattern])

@skipIf(bugnumber="rdar://141363609")
def test_optimized(self):
build_dict=dict(CFLAGS_EXTRAS="-O2 -Xclang -fbounds-safety")
self.__run(build_dict)

@skipIf(bugnumber="rdar://141363609")
def test_unoptimized(self):
build_dict=dict(CFLAGS_EXTRAS="-Xclang -fbounds-safety")
self.__run(build_dict)
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ def partial_oob(self, type_name):
def overflow_oob(self, type_name):
return self.get_idx_var_regex(oob_kind=OOBKind.Overflow, type_name=type_name)

@skipIf(bugnumber="rdar://141363609")
def test_bidi_known_type_size(self):
self.build()

Expand Down Expand Up @@ -151,7 +150,6 @@ def test_bidi_known_type_size(self):
lldbutil.continue_to_breakpoint(self.process, bkpt)
self.expect("frame variable fams2", patterns=[self.bidi_full_oob("FAMS_t *")])

@skipIf(bugnumber="rdar://141363609")
def test_bidi_unknown_type_size(self):
self.build()

Expand Down Expand Up @@ -203,7 +201,6 @@ def test_bidi_unknown_type_size(self):
lldbutil.continue_to_breakpoint(self.process, bkpt)
self.expect("frame variable oob_null", patterns=[self.bidi_full_oob("void *")])

@skipIf(bugnumber="rdar://141363609")
def test_idx_known_type_size(self):
self.build()

Expand Down Expand Up @@ -255,7 +252,6 @@ def test_idx_known_type_size(self):
lldbutil.continue_to_breakpoint(self.process, bkpt)
self.expect("frame variable fams2", patterns=[self.full_oob("FAMS_t *")])

@skipIf(bugnumber="rdar://141363609")
def test_idx_unknown_type_size(self):
self.build()

Expand Down