Skip to content

Commit 478ddde

Browse files
Enjia Maiandrewboie
authored andcommitted
tests: skip memory mapping execution testing of qemu_x86_64 coverage
Skip the memory mapping execution test case when code coverage enabled for qemu_x86_64 platform. See issue #30434. Signed-off-by: Enjia Mai <[email protected]>
1 parent 56f84b6 commit 478ddde

File tree

1 file changed

+9
-0
lines changed
  • tests/kernel/mem_protect/mem_map/src

1 file changed

+9
-0
lines changed

tests/kernel/mem_protect/mem_map/src/main.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@
1212
#define SKIP_EXECUTE_TESTS
1313
#endif
1414

15+
/* Skip the memory map executing case when coverage enabled in x86_64,
16+
* because it will crash due to incorrect address accessing for gcov variables.
17+
* See issue#30434 for more details.
18+
*/
19+
#if defined(CONFIG_X86_64) && defined(CONFIG_COVERAGE)
20+
#define SKIP_EXECUTE_TESTS
21+
#endif
22+
23+
1524
#define BASE_FLAGS (K_MEM_CACHE_WB)
1625
volatile bool expect_fault;
1726

0 commit comments

Comments
 (0)