Home
last modified time | relevance | path

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

/freebsd-14.2/lib/libsbuf/tests/
H A Dsbuf_string_test.c39 static char test_string[] = "this is a test string"; variable
142 asprintf(&test_string_tmp, "%s%s", test_string, test_string); in ATF_TC_BODY()
154 test_sbuf_len, sizeof(test_string)); in ATF_TC_BODY()
190 test_sbuf_len, strlen(test_string)); in ATF_TC_BODY()
197 test_sbuf_len, strlen(test_string)); in ATF_TC_BODY()
202 ATF_REQUIRE_STREQ_MSG(sbuf_data(sb), test_string, in ATF_TC_BODY()
204 test_string); in ATF_TC_BODY()
234 ATF_REQUIRE_STREQ_MSG(sbuf_data(sb), test_string, in ATF_TC_BODY()
236 test_string); in ATF_TC_BODY()
256 exp_sbuf_len = (ssize_t)(strlen(test_string) + in ATF_TC_BODY()
[all …]
H A Dsbuf_stdio_test.c40 static char test_string[] = "this is a test string"; variable
75 ATF_REQUIRE_EQ_MSG(0, sbuf_cat(sb, test_string), in ATF_TC_BODY()
81 atf_utils_wait(child_proc, 0, test_string, ""); in ATF_TC_BODY()
102 ATF_REQUIRE_EQ_MSG(0, sbuf_cat(sb, test_string), in ATF_TC_BODY()
106 ATF_CHECK_EQ(strlen(test_string), cnt); in ATF_TC_BODY()
109 atf_utils_wait(child_proc, 0, test_string, ""); in ATF_TC_BODY()
121 test_string, MESSAGE_SEPARATOR, test_string); in ATF_TC_BODY()
132 ATF_REQUIRE_MSG(sbuf_printf(sb, MESSAGE_FORMAT, test_string) == 0, in ATF_TC_BODY()
165 atf_utils_wait(child_proc, 0, test_string, ""); in ATF_TC_BODY()
181 test_string, MESSAGE_SEPARATOR, test_string); in ATF_TC_BODY()
[all …]
H A Dsbuf_core_test.c40 static char test_string[] = "this is a test string"; variable
42 _Static_assert(nitems(test_string) > TEST_STRING_CHOP_COUNT,
56 ATF_REQUIRE_MSG(sbuf_cat(sb, test_string) == 0, "sbuf_cat failed"); in ATF_TC_BODY()
70 atf_utils_wait(child_proc, 0, test_string, ""); in ATF_TC_BODY()
124 sbuf_cat(sb, test_string); in ATF_TC_BODY()
143 test_string_len = strlen(test_string); in ATF_TC_BODY()
166 char buf[strlen(test_string) + 1]; in ATF_TC_BODY()
172 sbuf_cat(&sb, test_string); in ATF_TC_BODY()
182 atf_utils_wait(child_proc, 0, test_string, ""); in ATF_TC_BODY()
215 test_string_len = strlen(test_string); in ATF_TC_BODY()
[all …]
/freebsd-14.2/contrib/libcbor/test/
H A Dstring_test.c296 char *test_string = "Hello"; in test_set_handle() local
297 unsigned char *string_data = malloc(strlen(test_string)); in test_set_handle()
298 memcpy(string_data, test_string, strlen(test_string)); in test_set_handle()
300 cbor_string_set_handle(string, string_data, strlen(test_string)); in test_set_handle()
312 char *test_string = "\xc5\xa0t\xc4\x9bst\xc3\xad\xc4\x8dko"; in test_set_handle_multibyte_codepoint() local
313 unsigned char *string_data = malloc(strlen(test_string)); in test_set_handle_multibyte_codepoint()
314 memcpy(string_data, test_string, strlen(test_string)); in test_set_handle_multibyte_codepoint()
316 cbor_string_set_handle(string, string_data, strlen(test_string)); in test_set_handle_multibyte_codepoint()
328 char *test_string = "Test: \xc5"; in test_set_handle_invalid_utf() local
329 unsigned char *string_data = malloc(strlen(test_string)); in test_set_handle_invalid_utf()
[all …]
/freebsd-14.2/crypto/heimdal/base/
H A Dtest_base.c122 test_string(void) in test_string() function
149 res |= test_string(); in main()
/freebsd-14.2/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-14.2/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()