From d42d181f278da3e20d37b71a2b4fd37d33004f30 Mon Sep 17 00:00:00 2001 From: Alexey Gerenkov Date: Mon, 15 Aug 2022 19:06:19 +0300 Subject: [PATCH] test/examples: Fixes expected GDB message upon thread hit breakpoint --- examples/system/sysview_tracing/example_test.py | 2 +- examples/system/sysview_tracing_heap_log/example_test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/system/sysview_tracing/example_test.py b/examples/system/sysview_tracing/example_test.py index 6281ddc17c..396f8b3f23 100644 --- a/examples/system/sysview_tracing/example_test.py +++ b/examples/system/sysview_tracing/example_test.py @@ -39,7 +39,7 @@ def test_examples_sysview_tracing(env, extra_data): gdb_args = '-x {} --directory={}'.format(tempfiles[0], os.path.join(proj_path, 'main')) with ttfw_idf.GDBProcess(os.path.join(proj_path, 'gdb.log'), elf_path, dut.app.target, gdb_args) as gdb: - gdb.pexpect_proc.expect_exact('Thread 1 hit Breakpoint 1, app_main ()') + gdb.pexpect_proc.expect_exact('Thread 1 "main" hit Breakpoint 1, app_main ()') gdb.pexpect_proc.expect_exact('Targets connected.') gdb.pexpect_proc.expect(re.compile(r'\d+')) diff --git a/examples/system/sysview_tracing_heap_log/example_test.py b/examples/system/sysview_tracing_heap_log/example_test.py index 04cd7e6ad1..dbf1e1f7d0 100644 --- a/examples/system/sysview_tracing_heap_log/example_test.py +++ b/examples/system/sysview_tracing_heap_log/example_test.py @@ -35,7 +35,7 @@ def test_examples_sysview_tracing_heap_log(env, extra_data): gdb_args = '-x {} --directory={}'.format(tempfiles[0], os.path.join(proj_path, 'main')) with ttfw_idf.GDBProcess(os.path.join(proj_path, 'gdb.log'), elf_path, dut.app.target, gdb_args) as gdb: - gdb.pexpect_proc.expect_exact('Thread 1 hit Temporary breakpoint 2, heap_trace_stop ()') + gdb.pexpect_proc.expect_exact('Thread 1 "main" hit Temporary breakpoint 2, heap_trace_stop ()') gdb.pexpect_proc.expect_exact('(gdb)') # dut has been restarted by gdb since the last dut.expect()