D | main.c | 5 * SPDX-License-Identifier: Apache-2.0 16 long read, fd; in ZTEST() local 30 read = semihost_read(fd, r_buffer, sizeof(r_buffer)); in ZTEST() 31 zassert_equal(read, -EIO, "Read from write-only file"); in ZTEST() 42 read = semihost_read(fd, r_buffer, sizeof(r_buffer)); in ZTEST() 43 zassert_equal(read, sizeof(r_buffer), "Read failed %d", read); in ZTEST() 44 zassert_mem_equal(r_buffer, w_buffer, sizeof(r_buffer), "Data not read"); in ZTEST() 45 read = semihost_read(fd, r_buffer, sizeof(r_buffer)); in ZTEST() 46 zassert_equal(read, sizeof(r_buffer), "Read failed"); in ZTEST() 47 zassert_mem_equal(r_buffer, w_buffer, sizeof(r_buffer), "Data not read"); in ZTEST() [all …]
|