From 926dc3fd97b3ba26cfa6bff2613c1f947714df4e Mon Sep 17 00:00:00 2001 From: r12f Date: Wed, 20 Dec 2023 23:28:09 +0000 Subject: [PATCH] more tests. --- tests/config/__init__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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)