From c5b99270af1deed953ac856b7b5bf3e5f84dd9e6 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Fri, 9 Dec 2016 09:25:03 -0800 Subject: [PATCH] Add test of compare-sections command. --- debug/gdbserver.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/debug/gdbserver.py b/debug/gdbserver.py index d236a97..000b52c 100755 --- a/debug/gdbserver.py +++ b/debug/gdbserver.py @@ -271,6 +271,16 @@ class DebugTest(GdbTest): assertIn("_exit", output) assertEqual(self.gdb.p("status"), expected_result) +class DebugCompareSections(DebugTest): + def test(self): + output = self.gdb.command("compare-sections") + matched = 0 + for line in output.splitlines(): + if line.startswith("Section"): + assert line.endswith("matched.") + matched += 1 + assertGreater(matched, 1) + class DebugFunctionCall(DebugTest): def test(self): self.gdb.b("main:start") -- 2.30.2