Home
last modified time | relevance | path

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

/Zephyr-latest/tests/drivers/hwinfo/api/src/
Dmain.c33 ssize_t length_read_1, length_read_2; in ZTEST() local
36 length_read_1 = hwinfo_get_device_id(buffer_1, 1); in ZTEST()
37 if (length_read_1 == -ENOSYS) { in ZTEST()
42 zassert_false((length_read_1 < 0), in ZTEST()
43 "Unexpected negative return value: %d", length_read_1); in ZTEST()
44 zassert_not_equal(length_read_1, 0, "Zero bytes read"); in ZTEST()
45 zassert_equal(length_read_1, 1, "Length not adhered"); 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()
[all …]