| /freebsd-14.2/lib/libsbuf/tests/ |
| H A D | sbuf_string_test.c | 39 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 D | sbuf_stdio_test.c | 40 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 D | sbuf_core_test.c | 40 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 D | string_test.c | 296 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 D | test_base.c | 122 test_string(void) in test_string() function 149 res |= test_string(); in main()
|
| /freebsd-14.2/crypto/openssl/test/ |
| H A D | test_test.c | 256 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 D | jsmn_test.c | 163 int test_string() { in test_string() function 593 test(test_string, "test string JSON data types"); in main()
|