Lines Matching refs:test_string
38 static char test_string[] = "this is a test string"; variable
146 asprintf(&test_string_tmp, "%s%s", test_string, test_string); in ATF_TC_BODY()
153 ATF_CHECK_MSG(sbuf_cat(sb, test_string) == 0, "sbuf_cat failed"); in ATF_TC_BODY()
156 ATF_REQUIRE_MSG(test_sbuf_len == (ssize_t)strlen(test_string), in ATF_TC_BODY()
158 sizeof(test_string)); in ATF_TC_BODY()
160 ATF_CHECK_MSG(sbuf_cat(sb, test_string) == 0, "sbuf_cat failed"); in ATF_TC_BODY()
189 ATF_CHECK_MSG(sbuf_cpy(sb, test_string) == 0, "sbuf_cpy failed"); in ATF_TC_BODY()
192 ATF_REQUIRE_MSG(test_sbuf_len == (ssize_t)strlen(test_string), in ATF_TC_BODY()
194 strlen(test_string)); in ATF_TC_BODY()
196 ATF_CHECK_MSG(sbuf_cpy(sb, test_string) == 0, "sbuf_cpy failed"); in ATF_TC_BODY()
199 ATF_REQUIRE_MSG(test_sbuf_len == (ssize_t)strlen(test_string), in ATF_TC_BODY()
201 strlen(test_string)); in ATF_TC_BODY()
206 ATF_REQUIRE_STREQ_MSG(sbuf_data(sb), test_string, in ATF_TC_BODY()
208 test_string); in ATF_TC_BODY()
224 for (i = 0; i <= strlen(test_string); i++) { /* Include the NUL */ in ATF_TC_BODY()
225 ATF_REQUIRE_MSG(sbuf_putc(sb, test_string[i]) == 0, in ATF_TC_BODY()
238 ATF_REQUIRE_STREQ_MSG(sbuf_data(sb), test_string, in ATF_TC_BODY()
240 test_string); in ATF_TC_BODY()
255 ATF_CHECK_MSG(sbuf_cpy(sb, test_string) == 0, "sbuf_cpy failed"); in ATF_TC_BODY()
260 exp_sbuf_len = (ssize_t)(strlen(test_string) + in ATF_TC_BODY()
272 ATF_REQUIRE_STREQ_MSG(sbuf_data(sb), test_string, in ATF_TC_BODY()
274 test_string); in ATF_TC_BODY()