Home
last modified time | relevance | path

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

/external/kmod/testsuite/
Dtest-scratchbuf.c29 const char *smallstr = "xyz"; in test_scratchbuf_onlystack() local
34 assert_return(scratchbuf_alloc(&sbuf, strlen(smallstr) + 1) == 0, EXIT_FAILURE); in test_scratchbuf_onlystack()
39 assert_return(scratchbuf_alloc(&sbuf, strlen(smallstr) + 1) == 0, EXIT_FAILURE); in test_scratchbuf_onlystack()
43 memcpy(scratchbuf_str(&sbuf), smallstr, strlen(smallstr) + 1); in test_scratchbuf_onlystack()
44 assert_return(strcmp(scratchbuf_str(&sbuf), smallstr) == 0, EXIT_FAILURE); in test_scratchbuf_onlystack()
55 const char *smallstr = "xyz"; in test_scratchbuf_heap() local
63 assert_return(scratchbuf_alloc(&sbuf, strlen(smallstr) + 1) == 0, EXIT_FAILURE); in test_scratchbuf_heap()
65 memcpy(scratchbuf_str(&sbuf), smallstr, strlen(smallstr) + 1); in test_scratchbuf_heap()
71 assert_return(strcmp(scratchbuf_str(&sbuf), smallstr) == 0, EXIT_FAILURE); in test_scratchbuf_heap()