Home
last modified time | relevance | path

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

/picolibc-3.7.0-3.6.0/test/semihost/
Dsemihost-write.c42 #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()
Dsemihost-read.c42 #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()
Dsemihost-seek.c42 #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()
Dsemihost-flen.c41 #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()