Searched refs:ATF_CHECK_MSG (Results 1 - 25 of 58) sorted by relevance

123

/freebsd-current/lib/libc/tests/gen/
H A Dpopen_test.c57 ATF_CHECK_MSG(flags != -1, "fcntl(F_GETFD) failed; errno=%d", errno);
64 ATF_CHECK_MSG((flags & FD_CLOEXEC) == exp_flags,
79 ATF_CHECK_MSG(fp != NULL, "popen(, \"%s\") failed", mode);
84 ATF_CHECK_MSG(WIFEXITED(status) && WEXITSTATUS(status) == 7,
101 ATF_CHECK_MSG(fp != NULL, "popen(, \"%s\") failed", mode);
106 ATF_CHECK_MSG(!input_error_1, "input error 1");
110 ATF_CHECK_MSG(WIFEXITED(status) && WEXITSTATUS(status) == 9,
118 ATF_CHECK_MSG(fp != NULL, "popen(, \"%s\") failed", mode);
122 ATF_CHECK_MSG((sres = fgets(buf, sizeof(buf), fp)) != NULL,
125 ATF_CHECK_MSG(strcm
[all...]
H A Dglob2_test.c85 ATF_CHECK_MSG(rc == GLOB_NOMATCH,
97 ATF_CHECK_MSG(dt < 1, "glob(3) took far too long: %d %.9f", i,
H A Dfmtcheck_test.c89 ATF_CHECK_MSG(f == cf,
H A Darc4random_test.c76 ATF_CHECK_MSG(memcmp(page->parentbuf, page->childbuf, BUFSIZE) != 0,
/freebsd-current/lib/libc/tests/stdio/
H A Dgets_s_test.c50 ATF_CHECK_MSG(gets_s(NULL, 1) == NULL,
73 ATF_CHECK_MSG(gets_s(b, sizeof(b)) == 0, "gets_s() normal failed");
92 ATF_CHECK_MSG(gets_s(&b, RSIZE_MAX + 1) == NULL,
102 ATF_CHECK_MSG(gets_s(&b, 0) == NULL, "gets_s() n is zero");
114 ATF_CHECK_MSG(gets_s(&b, RSIZE_MAX + 1) == NULL, "gets_s() n > RSIZE_MAX");
115 ATF_CHECK_MSG(error_code > 0, "gets_s() error code is %d", error_code);
116 ATF_CHECK_MSG(strcmp(message, "gets_s : n > RSIZE_MAX") == 0, "gets_s(): incorrect error message");
129 ATF_CHECK_MSG(error_code > 0, "gets_s() error code is %d", error_code);
130 ATF_CHECK_MSG(strcmp(message, "gets_s : n == 0") == 0, "gets_s(): incorrect error message");
H A Dprintbasic_test.c78 ATF_CHECK_MSG(strcmp(result, s) == 0,
87 ATF_CHECK_MSG(wcscmp(wresult, ws) == 0,
/freebsd-current/contrib/netbsd-tests/lib/libcrypt/
H A Dt_crypt.c135 ATF_CHECK_MSG(0, "Test %zu NULL\n", i);
141 ATF_CHECK_MSG(0, "Test %zu %s != %s\n",
/freebsd-current/lib/libc/tests/string/
H A Dstrverscmp_test.c20 ATF_CHECK_MSG(
26 ATF_CHECK_MSG(
32 ATF_CHECK_MSG(
H A Dwcscoll_test.c52 ATF_CHECK_MSG(setlocale(LC_ALL, "ru_RU.UTF-8") != NULL,
55 ATF_CHECK_MSG(wcscmp(c, res) == 0,
76 ATF_CHECK_MSG(curloc != NULL, "Fail to set locale");
121 ATF_CHECK_MSG(strxfrm(data[i].xval, data[i].sval,
139 ATF_CHECK_MSG(!((sr * sx < 0) ||
/freebsd-current/lib/libsbuf/tests/
H A Dsbuf_string_test.c73 ATF_CHECK_MSG(sbuf_bcat(sb, test_buffer, sizeof(test_buffer)) == 0,
81 ATF_CHECK_MSG(sbuf_bcat(sb, test_buffer, sizeof(test_buffer)) == 0,
110 ATF_CHECK_MSG(sbuf_bcpy(sb, test_buffer, sizeof(test_buffer)) == 0,
118 ATF_CHECK_MSG(sbuf_bcpy(sb, test_buffer, sizeof(test_buffer)) == 0,
148 ATF_CHECK_MSG(sbuf_cat(sb, test_string) == 0, "sbuf_cat failed");
155 ATF_CHECK_MSG(sbuf_cat(sb, test_string) == 0, "sbuf_cat failed");
184 ATF_CHECK_MSG(sbuf_cpy(sb, test_string) == 0, "sbuf_cpy failed");
191 ATF_CHECK_MSG(sbuf_cpy(sb, test_string) == 0, "sbuf_cpy failed");
250 ATF_CHECK_MSG(sbuf_cpy(sb, test_string) == 0, "sbuf_cpy failed");
251 ATF_CHECK_MSG(sbuf_ca
[all...]
/freebsd-current/tests/sys/sys/
H A Dtime_test.c43 ATF_CHECK_MSG((expected) - 1 <= (actual) && actual <= (expected) + 1,
71 ATF_CHECK_MSG((expected) - 1 <= (actual) && actual <= (expected) + 1,
99 ATF_CHECK_MSG((expected) - 1 <= (actual) && actual <= (expected) + 1,
126 ATF_CHECK_MSG((expected) - 1 <= (actual) && actual <= (expected) + 1,
155 ATF_CHECK_MSG((expected) - 1 <= (actual) && actual <= (expected) + 1,
185 ATF_CHECK_MSG((expected) - 1 <= (actual) && actual <= (expected) + 1,
/freebsd-current/tests/sys/netinet/libalias/
H A D1_instance.c62 ATF_CHECK_MSG(la != NULL, "Creating an instance failed.");
81 ATF_CHECK_MSG(la == lo, "Recreating moved the instance around: %d", i);
99 ATF_CHECK_MSG(la[i] != NULL, "Creating instance %d failed.", i);
H A Dutil.h71 ATF_CHECK_MSG(res == PKT_ALIAS_OK, \
83 ATF_CHECK_MSG(res != PKT_ALIAS_OK, \
95 ATF_CHECK_MSG(res == PKT_ALIAS_OK, \
107 ATF_CHECK_MSG(res != PKT_ALIAS_OK, \
/freebsd-current/contrib/atf/atf-c/
H A Dmacros.h136 #define ATF_CHECK_MSG(expression, fmt, ...) \ macro
160 ATF_CHECK_MSG((expected) == (actual), "%s != %s", #expected, #actual)
167 ATF_CHECK_MSG((expected) == (actual), "%s != %s: " fmt, \
181 ATF_CHECK_MSG(strcmp(_atf_expected, _atf_actual) == 0, \
197 ATF_CHECK_MSG(strcmp(_atf_expected, _atf_actual) == 0, \
213 ATF_CHECK_MSG(_atf_expected == _atf_actual, \
229 ATF_CHECK_MSG(_atf_expected == _atf_actual, \
244 ATF_CHECK_MSG(atf_utils_grep_string("%s", _atf_string, _atf_regexp), \
259 ATF_CHECK_MSG(atf_utils_grep_string("%s", _atf_string, _atf_regexp), \
/freebsd-current/contrib/netbsd-tests/
H A Dh_macros.h45 ATF_CHECK_MSG((x) != (v), "%s: %s", #x, strerror(errno))
49 ATF_CHECK_MSG((x) != -1, "%s [" fmt "]: %s", #x, arg, strerror(errno))
/freebsd-current/lib/libc/tests/stdlib/
H A Dqsort_b_test.c64 ATF_CHECK_MSG(testvector[i] == sresvector[i],
H A Dqsort_r_test.c77 ATF_CHECK_MSG(testvector[i] == sresvector[i],
H A Dqsort_r_compat_test.c77 ATF_CHECK_MSG(testvector[i] == sresvector[i],
H A Dmergesort_test.c56 ATF_CHECK_MSG(testvector[i] == sresvector[i],
H A Dheapsort_test.c56 ATF_CHECK_MSG(testvector[i] == sresvector[i],
H A Dqsort_test.c56 ATF_CHECK_MSG(testvector[i] == sresvector[i],
/freebsd-current/lib/msun/tests/
H A Dtest-utils.h152 ATF_CHECK_MSG(fpequal_cs(_x, _y, checksign), \
161 ATF_CHECK_MSG(eq, "%s (%.25Lg) ~= %s (%.25Lg), diff=%Lg, maxdiff=%Lg,", \
179 ATF_CHECK_MSG(equal_cs, "%s (%Lg + %Lg I) ~= %s (%Lg + %Lg I)", \
188 ATF_CHECK_MSG(equal_tol, "%s (%Lg + %Lg I) ~= %s (%Lg + %Lg I)", \
/freebsd-current/contrib/netbsd-tests/lib/libm/
H A Dt_ilogb.c47 ATF_CHECK_MSG((r & FE_INVALID) != 0, \
55 ATF_CHECK_MSG(r == 0, "r=%#x != 0\n", r); \
H A Dt_round.c107 ATF_CHECK_MSG((u % 2 == 0),
126 ATF_CHECK_MSG(unsigned_even % 2 == 0,
H A Dt_fe_round.c81 ATF_CHECK_MSG(
88 ATF_CHECK_MSG(
110 ATF_CHECK_MSG(
117 ATF_CHECK_MSG(
152 ATF_CHECK_MSG(
178 ATF_CHECK_MSG(

Completed in 132 milliseconds

123