Home
last modified time | relevance | path

Searched refs:buffer_1 (Results 1 – 1 of 1) sorted by relevance

/Zephyr-latest/tests/drivers/hwinfo/api/src/
Dmain.c31 uint8_t buffer_1[BUFFER_LENGTH]; in ZTEST() local
36 length_read_1 = hwinfo_get_device_id(buffer_1, 1); in ZTEST()
47 memset(buffer_1, BUFFER_CANARY, sizeof(buffer_1)); in ZTEST()
49 length_read_1 = hwinfo_get_device_id(buffer_1, BUFFER_LENGTH - 1); in ZTEST()
50 zassert_equal(buffer_1[length_read_1], BUFFER_CANARY, in ZTEST()
53 memcpy(buffer_2, buffer_1, length_read_1); in ZTEST()
56 buffer_1[i] ^= 0xA5; in ZTEST()
59 length_read_2 = hwinfo_get_device_id(buffer_1, BUFFER_LENGTH - 1); in ZTEST()
62 zassert_equal(buffer_1[length_read_1], (BUFFER_CANARY ^ 0xA5), in ZTEST()
66 zassert_equal(buffer_1[i], buffer_2[i], in ZTEST()