Lines Matching refs:test_string
39 static char test_string[] = "this is a test string"; variable
142 asprintf(&test_string_tmp, "%s%s", test_string, test_string); in ATF_TC_BODY()
149 ATF_CHECK_MSG(sbuf_cat(sb, test_string) == 0, "sbuf_cat failed"); in ATF_TC_BODY()
152 ATF_REQUIRE_MSG(test_sbuf_len == (ssize_t)strlen(test_string), in ATF_TC_BODY()
154 test_sbuf_len, sizeof(test_string)); in ATF_TC_BODY()
156 ATF_CHECK_MSG(sbuf_cat(sb, test_string) == 0, "sbuf_cat failed"); in ATF_TC_BODY()
185 ATF_CHECK_MSG(sbuf_cpy(sb, test_string) == 0, "sbuf_cpy failed"); in ATF_TC_BODY()
188 ATF_REQUIRE_MSG(test_sbuf_len == (ssize_t)strlen(test_string), in ATF_TC_BODY()
190 test_sbuf_len, strlen(test_string)); in ATF_TC_BODY()
192 ATF_CHECK_MSG(sbuf_cpy(sb, test_string) == 0, "sbuf_cpy failed"); in ATF_TC_BODY()
195 ATF_REQUIRE_MSG(test_sbuf_len == (ssize_t)strlen(test_string), in ATF_TC_BODY()
197 test_sbuf_len, strlen(test_string)); in ATF_TC_BODY()
202 ATF_REQUIRE_STREQ_MSG(sbuf_data(sb), test_string, in ATF_TC_BODY()
204 test_string); in ATF_TC_BODY()
220 for (i = 0; i <= strlen(test_string); i++) { /* Include the NUL */ in ATF_TC_BODY()
221 ATF_REQUIRE_MSG(sbuf_putc(sb, test_string[i]) == 0, in ATF_TC_BODY()
234 ATF_REQUIRE_STREQ_MSG(sbuf_data(sb), test_string, in ATF_TC_BODY()
236 test_string); in ATF_TC_BODY()
251 ATF_CHECK_MSG(sbuf_cpy(sb, test_string) == 0, "sbuf_cpy failed"); in ATF_TC_BODY()
256 exp_sbuf_len = (ssize_t)(strlen(test_string) + in ATF_TC_BODY()
268 ATF_REQUIRE_STREQ_MSG(sbuf_data(sb), test_string, in ATF_TC_BODY()
270 test_string); in ATF_TC_BODY()