summaryrefslogtreecommitdiff
path: root/include/test_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/test_util.h')
-rw-r--r--include/test_util.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/test_util.h b/include/test_util.h
index e3aa1d8c27..a1ab956359 100644
--- a/include/test_util.h
+++ b/include/test_util.h
@@ -236,7 +236,8 @@ struct test_i2c_write_dev {
* @param routine Function pointer, with the same prototype as i2c_xfer()
*/
#define DECLARE_TEST_I2C_XFER(routine) \
- const struct test_i2c_xfer __test_i2c_xfer_##routine \
+ const struct test_i2c_xfer __no_sanitize_address \
+ __test_i2c_xfer_##routine \
__attribute__((section(".rodata.test_i2c.xfer"))) \
= {routine}