testsuite: include: zephyr: Add missing mappings for pragmas and recursion

Add missing TOOLCHAIN_WARNING_* definitions for the IAR toolchain:
- subsys/testsuite/include/zephyr/test_toolchain.h
- subsys/testsuite/include/zephyr/test_toolchain/iar.h

Signed-off-by: Thinh Le Cong <thinh.le.xr@bp.renesas.com>
This commit is contained in:
Thinh Le Cong
2025-10-27 13:11:48 +07:00
committed by Fabio Baltieri
parent 15cdf90bee
commit 36c5d6646d
2 changed files with 20 additions and 0 deletions

View File

@@ -13,6 +13,8 @@
#include <zephyr/test_toolchain/llvm.h>
#elif defined(__GNUC__) || (defined(_LINKER) && defined(__GCC_LINKER_CMD__))
#include <zephyr/test_toolchain/gcc.h>
#elif defined(__IAR_SYSTEMS_ICC__)
#include <zephyr/test_toolchain/iar.h>
#endif
/**

View File

@@ -0,0 +1,18 @@
/*
* Copyright (c) 2025 Renesas Electronics Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_TESTSUITE_INCLUDE_TEST_TOOLCHAIN_IAR_H_
#define ZEPHYR_TESTSUITE_INCLUDE_TEST_TOOLCHAIN_IAR_H_
#ifndef ZEPHYR_TESTSUITE_INCLUDE_TEST_TOOLCHAIN_H_
#error "Please do not include test toolchain-specific headers directly, \
use <zephyr/test_toolchain.h> instead"
#endif
#define TOOLCHAIN_WARNING_PRAGMAS Pe161
#define TOOLCHAIN_WARNING_INFINITE_RECURSION Pe2440
#endif