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