Searched refs:TEST_STRING_LEN (Results 1 – 4 of 4) sorted by relevance
/picolibc-3.7.0-3.6.0/test/semihost/ |
D | semihost-write.c | 42 #define TEST_STRING_LEN 12 macro 52 char buf[TEST_STRING_LEN + 10]; in main() 59 not_written = sys_semihost_write(fd, TEST_STRING, TEST_STRING_LEN); in main() 79 if (not_read + TEST_STRING_LEN != sizeof(buf)) { in main() 80 …ntf("read bad result %ld expected %ld\n", (long) not_read, (long) (sizeof(buf) - TEST_STRING_LEN)); in main() 84 buf[TEST_STRING_LEN] = '\0'; in main() 85 if (memcmp(buf, TEST_STRING, TEST_STRING_LEN) != 0) { in main()
|
D | semihost-read.c | 42 #define TEST_STRING_LEN 12 macro 52 char buf[TEST_STRING_LEN + 10]; in main() 59 not_written = sys_semihost_write(fd, TEST_STRING, TEST_STRING_LEN); in main() 79 if (not_read + TEST_STRING_LEN != sizeof(buf)) { in main() 80 …ntf("read bad result %ld expected %ld\n", (long) not_read, (long) (sizeof(buf) - TEST_STRING_LEN)); in main() 84 buf[TEST_STRING_LEN] = '\0'; in main() 85 if (memcmp(buf, TEST_STRING, TEST_STRING_LEN) != 0) { in main()
|
D | semihost-seek.c | 42 #define TEST_STRING_LEN 12 macro 53 char buf[TEST_STRING_LEN + 10]; in main() 60 not_written = sys_semihost_write(fd, TEST_STRING, TEST_STRING_LEN); in main() 89 if (sizeof (buf) - not_read != TEST_STRING_LEN - TEST_SEEK_POS) { in main() 91 (long) (sizeof(buf) - TEST_STRING_LEN + TEST_SEEK_POS)); in main() 95 buf[TEST_STRING_LEN - TEST_SEEK_POS] = '\0'; in main() 96 if (memcmp(buf, &TEST_STRING[0] + TEST_SEEK_POS, TEST_STRING_LEN - TEST_SEEK_POS) != 0) { in main()
|
D | semihost-flen.c | 41 #define TEST_STRING_LEN 12 macro 57 not_written = sys_semihost_write(fd, TEST_STRING, TEST_STRING_LEN); in main() 77 if (len != TEST_STRING_LEN) { in main() 78 printf("flen failed %ld != %ld\n", (long) len, (long) TEST_STRING_LEN); in main()
|