Lines Matching refs:test_string
41 static char test_string[] = "this is a test string";
144 asprintf(&test_string_tmp, "%s%s", test_string, test_string);
151 ATF_CHECK_MSG(sbuf_cat(sb, test_string) == 0, "sbuf_cat failed");
154 ATF_REQUIRE_MSG(test_sbuf_len == (ssize_t)strlen(test_string),
156 test_sbuf_len, sizeof(test_string));
158 ATF_CHECK_MSG(sbuf_cat(sb, test_string) == 0, "sbuf_cat failed");
187 ATF_CHECK_MSG(sbuf_cpy(sb, test_string) == 0, "sbuf_cpy failed");
190 ATF_REQUIRE_MSG(test_sbuf_len == (ssize_t)strlen(test_string),
192 test_sbuf_len, strlen(test_string));
194 ATF_CHECK_MSG(sbuf_cpy(sb, test_string) == 0, "sbuf_cpy failed");
197 ATF_REQUIRE_MSG(test_sbuf_len == (ssize_t)strlen(test_string),
199 test_sbuf_len, strlen(test_string));
204 ATF_REQUIRE_STREQ_MSG(sbuf_data(sb), test_string,
206 test_string);
222 for (i = 0; i <= strlen(test_string); i++) { /* Include the NUL */
223 ATF_REQUIRE_MSG(sbuf_putc(sb, test_string[i]) == 0,
236 ATF_REQUIRE_STREQ_MSG(sbuf_data(sb), test_string,
238 test_string);
253 ATF_CHECK_MSG(sbuf_cpy(sb, test_string) == 0, "sbuf_cpy failed");
258 exp_sbuf_len = (ssize_t)(strlen(test_string) +
270 ATF_REQUIRE_STREQ_MSG(sbuf_data(sb), test_string,
272 test_string);