Skip to content

Commit

Permalink
more tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
r12f committed Dec 20, 2023
1 parent cd3f652 commit 926dc3f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Test GEF configuration parameters.
"""

from tests.utils import gdb_run_cmd
from tests.utils import gdb_run_cmd, gdb_start_silent_cmd
from tests.utils import GefUnitTestGeneric


Expand Down Expand Up @@ -65,3 +65,8 @@ def test_config_libc_version(self):
self.assertNoException(res)
self.assertNotIn("[!]", res)
self.assertIn('gef.libc_version (str) = ""', res)

res = gdb_start_silent_cmd("python print(gef.libc.version)", before=["gef config gef.libc_version 2.31"])
self.assertNoException(res)
self.assertNotIn("[!]", res)
self.assertIn('(2, 31)', res)

0 comments on commit 926dc3f

Please sign in to comment.