Home
last modified time | relevance | path

Searched refs:test_string (Results 1 – 6 of 6) sorted by relevance

/freebsd/lib/libsbuf/tests/
H A Dsbuf_string_test.c38 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()
[all …]
H A Dsbuf_stdio_test.c39 static char test_string[] = "this is a test string"; variable
74 ATF_REQUIRE_EQ_MSG(0, sbuf_cat(sb, test_string), in ATF_TC_BODY()
80 atf_utils_wait(child_proc, 0, test_string, ""); in ATF_TC_BODY()
101 ATF_REQUIRE_EQ_MSG(0, sbuf_cat(sb, test_string), in ATF_TC_BODY()
105 ATF_CHECK_EQ(strlen(test_string), cnt); in ATF_TC_BODY()
108 atf_utils_wait(child_proc, 0, test_string, ""); in ATF_TC_BODY()
119 asprintf(&test_string_tmp, "%s%c" MESSAGE_FORMAT, test_string, in ATF_TC_BODY()
120 MESSAGE_SEPARATOR, test_string); in ATF_TC_BODY()
127 ATF_REQUIRE_MSG(sbuf_cat(sb, test_string) == 0, "sbuf_cat failed"); in ATF_TC_BODY()
131 ATF_REQUIRE_MSG(sbuf_printf(sb, MESSAGE_FORMAT, test_string) == 0, in ATF_TC_BODY()
[all …]
H A Dsbuf_core_test.c39 static char test_string[] = "this is a test string"; variable
41 _Static_assert(nitems(test_string) > TEST_STRING_CHOP_COUNT,
55 ATF_REQUIRE_MSG(sbuf_cat(sb, test_string) == 0, "sbuf_cat failed"); in ATF_TC_BODY()
69 atf_utils_wait(child_proc, 0, test_string, ""); in ATF_TC_BODY()
122 sbuf_cat(sb, test_string); in ATF_TC_BODY()
141 test_string_len = strlen(test_string); in ATF_TC_BODY()
146 ATF_REQUIRE_MSG(sbuf_cat(sb, test_string) == 0, in ATF_TC_BODY()
165 char buf[strlen(test_string) + 1]; in ATF_TC_BODY()
171 sbuf_cat(&sb, test_string); in ATF_TC_BODY()
181 atf_utils_wait(child_proc, 0, test_string, ""); in ATF_TC_BODY()
[all …]
/freebsd/crypto/heimdal/base/
H A Dtest_base.c122 test_string(void) in test_string() function
149 res |= test_string(); in main()
/freebsd/crypto/openssl/test/
H A Dtest_test.c256 static int test_string(void) in test_string() function
565 ADD_TEST(test_string); in setup_tests()
/freebsd/contrib/ntp/libjsmn/
H A Djsmn_test.c163 int test_string() { in test_string() function
593 test(test_string, "test string JSON data types"); in main()