diff --git a/tests/config/__init__.py b/tests/config/__init__.py index a589153ef..17d8a5a84 100644 --- a/tests/config/__init__.py +++ b/tests/config/__init__.py @@ -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 @@ -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)