Lines Matching defs:test_string
17 static char test_string[] = "this is a test string";
125 asprintf(&test_string_tmp, "%s%s", test_string, test_string);
132 ATF_CHECK_MSG(sbuf_cat(sb, test_string) == 0, "sbuf_cat failed");
135 ATF_REQUIRE_MSG(test_sbuf_len == (ssize_t)strlen(test_string),
137 sizeof(test_string));
139 ATF_CHECK_MSG(sbuf_cat(sb, test_string) == 0, "sbuf_cat failed");
168 ATF_CHECK_MSG(sbuf_cpy(sb, test_string) == 0, "sbuf_cpy failed");
171 ATF_REQUIRE_MSG(test_sbuf_len == (ssize_t)strlen(test_string),
173 strlen(test_string));
175 ATF_CHECK_MSG(sbuf_cpy(sb, test_string) == 0, "sbuf_cpy failed");
178 ATF_REQUIRE_MSG(test_sbuf_len == (ssize_t)strlen(test_string),
180 strlen(test_string));
185 ATF_REQUIRE_STREQ_MSG(sbuf_data(sb), test_string,
187 test_string);
203 for (i = 0; i <= strlen(test_string); i++) { /* Include the NUL */
204 ATF_REQUIRE_MSG(sbuf_putc(sb, test_string[i]) == 0,
217 ATF_REQUIRE_STREQ_MSG(sbuf_data(sb), test_string,
219 test_string);
234 ATF_CHECK_MSG(sbuf_cpy(sb, test_string) == 0, "sbuf_cpy failed");
239 exp_sbuf_len = (ssize_t)(strlen(test_string) +
251 ATF_REQUIRE_STREQ_MSG(sbuf_data(sb), test_string,
253 test_string);