/freebsd-src/lib/libsbuf/tests/ |
H A D | sbuf_string_test.c | 38 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() [all...] |
H A D | sbuf_stdio_test.c | 39 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) in ATF_TC_BODY() [all...] |
H A D | sbuf_core_test.c | 39 static char test_string[] = "this is a test string"; variable 41 _Static_assert(nitems(test_string) > TEST_STRING_CHOP_COUNT, 42 "test_string is too short"); 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() [all...] |
/freebsd-src/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-src/crypto/heimdal/base/ |
H A D | test_base.c | 122 test_string(void) in test_string() function 149 res |= test_string(); in main()
|
/freebsd-src/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-src/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()
|