Lines Matching +full:code +full:- +full:0
4 * SPDX-License-Identifier: Apache-2.0
14 /* For size-limited tests, use data size of 1 byte */
16 0x5b,
19 0x00,
25 0x23, 0x82, 0xa8, 0x7b, 0xde, 0x18, 0x00, 0xff, 0x8e, 0xd6,
28 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
37 rc = retained_mem_write(retained_mem_test_device, 0, data, sizeof(data)); in ZTEST()
38 zassert_equal(rc, 0, "Return code should be success"); in ZTEST()
40 memset(buffer, 0, sizeof(buffer)); in ZTEST()
42 rc = retained_mem_read(retained_mem_test_device, 0, buffer, sizeof(buffer)); in ZTEST()
43 zassert_equal(rc, 0, "Return code should be success"); in ZTEST()
53 zassume_between_inclusive(rc, 1, 0x4000, "Retained memory size is not valid"); in ZTEST()
61 zassert_equal(rc, 0, "Return code should be success"); in ZTEST()
63 rc = retained_mem_write(retained_mem_test_device, 0, data, sizeof(data)); in ZTEST()
64 zassert_equal(rc, 0, "Return code should be success"); in ZTEST()
66 rc = retained_mem_read(retained_mem_test_device, 0, buffer, sizeof(buffer)); in ZTEST()
67 zassert_equal(rc, 0, "Return code should be success"); in ZTEST()
72 zassert_equal(rc, 0, "Return code should be success"); in ZTEST()
74 rc = retained_mem_read(retained_mem_test_device, 0, buffer, sizeof(buffer)); in ZTEST()
75 zassert_equal(rc, 0, "Return code should be success"); in ZTEST()
77 zassert_mem_equal(empty_data, buffer, sizeof(empty_data), "Expected data to be 0x00's"); in ZTEST()