diff --git a/tests/commands/entry_break.py b/tests/commands/entry_break.py index 0df99da7b..86ab5fe55 100644 --- a/tests/commands/entry_break.py +++ b/tests/commands/entry_break.py @@ -21,9 +21,8 @@ def test_cmd_entry_break(self): # a PIC binary) start with # assert len(lines) >= 2 - assert lines[0].startswith("[+] Breaking at entry-point") or \ - lines[1].startswith("[+] Breaking at entry-point") + assert any(line.startswith("[+] Breaking at entry-point") for line in lines) # re-run while session running (nok) - res = (gdb.execute("entry-break", to_string=True).strip() or "").strip() + res = (gdb.execute("entry-break", to_string=True) or "").strip() assert "gdb is already running" in res