Skip to content

Commit

Permalink
Test relocatable symbols in each section of got --all output.
Browse files Browse the repository at this point in the history
  • Loading branch information
gordonmessmer committed May 23, 2024
1 parent 9d3c406 commit 3e55c02
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/commands/got.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ def checksyms(lines):
return
if "format-string-helper.out" in lines[0]:
res = ''.join(lines)
self.assertIn("printf", res)
self.assertNotIn("strcpy", res)
self.assertIn(" printf", res)
self.assertNotIn(" strcpy", res)
if "/libc" in lines[0]:
res = ''.join(lines)
self.assertNotIn("printf", res)
self.assertNotIn("strcpy", res)
self.assertNotIn(" printf", res)
self.assertNotIn(" strcpy", res)

res = gdb.execute("got --all printf", to_string=True)
self.assertIn("/libc", res)
Expand Down

0 comments on commit 3e55c02

Please sign in to comment.