Searched refs:test_string (Results 1 – 5 of 5) sorted by relevance
| /freebsd-12-stable/lib/libsbuf/tests/ |
| D | sbuf_string_test.c | 41 static char test_string[] = "this is a test string"; variable 144 asprintf(&test_string_tmp, "%s%s", test_string, test_string); in ATF_TC_BODY() 151 ATF_CHECK_MSG(sbuf_cat(sb, test_string) == 0, "sbuf_cat failed"); in ATF_TC_BODY() 154 ATF_REQUIRE_MSG(test_sbuf_len == (ssize_t)strlen(test_string), in ATF_TC_BODY() 156 test_sbuf_len, sizeof(test_string)); in ATF_TC_BODY() 158 ATF_CHECK_MSG(sbuf_cat(sb, test_string) == 0, "sbuf_cat failed"); in ATF_TC_BODY() 187 ATF_CHECK_MSG(sbuf_cpy(sb, test_string) == 0, "sbuf_cpy failed"); in ATF_TC_BODY() 190 ATF_REQUIRE_MSG(test_sbuf_len == (ssize_t)strlen(test_string), in ATF_TC_BODY() 192 test_sbuf_len, strlen(test_string)); in ATF_TC_BODY() 194 ATF_CHECK_MSG(sbuf_cpy(sb, test_string) == 0, "sbuf_cpy failed"); in ATF_TC_BODY() [all …]
|
| D | sbuf_stdio_test.c | 42 static char test_string[] = "this is a test string"; variable 69 test_string, MESSAGE_SEPARATOR, test_string); in ATF_TC_BODY() 76 ATF_REQUIRE_MSG(sbuf_cat(sb, test_string) == 0, "sbuf_cat failed"); in ATF_TC_BODY() 80 ATF_REQUIRE_MSG(sbuf_printf(sb, MESSAGE_FORMAT, test_string) == 0, in ATF_TC_BODY() 105 ATF_REQUIRE_MSG(sbuf_cat(sb, test_string) == 0, "sbuf_cat failed"); in ATF_TC_BODY() 112 atf_utils_wait(child_proc, 0, test_string, ""); in ATF_TC_BODY() 128 test_string, MESSAGE_SEPARATOR, test_string); in ATF_TC_BODY() 135 ATF_REQUIRE_MSG(sbuf_cat(sb, test_string) == 0, "sbuf_cat failed"); in ATF_TC_BODY() 139 rc = sbuf_vprintf_helper(sb, MESSAGE_FORMAT, test_string); in ATF_TC_BODY()
|
| D | sbuf_core_test.c | 42 static char test_string[] = "this is a test string"; variable 44 _Static_assert(nitems(test_string) > TEST_STRING_CHOP_COUNT, 58 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() 114 test_string_len = strlen(test_string); in ATF_TC_BODY() 119 ATF_REQUIRE_MSG(sbuf_cat(sb, test_string) == 0, "sbuf_cat failed"); in ATF_TC_BODY() 155 ATF_REQUIRE_MSG(sbuf_cat(sb, test_string) == 0, "sbuf_cat failed"); in ATF_TC_BODY() 158 test_string_len = strlen(test_string); in ATF_TC_BODY() 181 ATF_REQUIRE_MSG(strncmp(sbuf_data(sb), test_string, buf_len) == 0, in ATF_TC_BODY() 183 test_string, buf_len); in ATF_TC_BODY()
|
| /freebsd-12-stable/crypto/heimdal/base/ |
| D | test_base.c | 122 test_string(void) in test_string() function 149 res |= test_string(); in main()
|
| /freebsd-12-stable/contrib/ntp/libjsmn/ |
| D | jsmn_test.c | 163 int test_string() { in test_string() function 593 test(test_string, "test string JSON data types"); in main()
|