Searched refs:SM_TEST (Results 1 - 21 of 21) sorted by relevance

/freebsd-10-stable/contrib/sendmail/libsm/
H A Dt-types.c32 SM_TEST(sizeof(LONGLONG_T) == sizeof(ULONGLONG_T));
39 if (!SM_TEST(sizeof(ino_t) <= sizeof(ULONGLONG_T)) ||
40 !SM_TEST(sizeof(off_t) <= sizeof(ULONGLONG_T)) ||
41 !SM_TEST(sizeof(void*) <= sizeof(ULONGLONG_T)))
65 SM_TEST(lt > ll);
68 if (!SM_TEST(buf[0] == '8')
69 || !SM_TEST(strspn(&buf[1], r) == sizeof(ll) * 2 - 1))
77 SM_TEST(lt < ll);
80 if (!SM_TEST(buf[0] == '7')
81 || !SM_TEST(strsp
[all...]
H A Dt-path.c26 SM_TEST(sm_path_isdevnull(SM_PATH_DEVNULL));
28 SM_TEST(sm_path_isdevnull(r));
30 SM_TEST(!sm_path_isdevnull(r));
32 SM_TEST(!sm_path_isdevnull(r));
H A Dt-strl.c39 SM_TEST(sm_strlcpy(s3, s1, 4) == 3);
40 SM_TEST(strcmp(s1, s3) == 0);
42 SM_TEST(sm_strlcat(s3, s2, 8) == 6);
44 SM_TEST(strcmp(s3, r) == 0);
46 SM_TEST(sm_strlcpy(s3, s1, 2) == 3);
48 SM_TEST(strcmp(s3, r) == 0);
50 SM_TEST(sm_strlcat(s3, s2, 3) == 4);
52 SM_TEST(strcmp(s3, r) == 0);
54 SM_TEST(sm_strlcpy(s3, s1, 4) == 3);
56 SM_TEST(sm_strlcat
[all...]
H A Dt-strrevcmp.c30 SM_TEST(sm_strrevcmp(s1, s2) == 0);
34 SM_TEST(sm_strrevcmp(s1, s2) > 0);
38 SM_TEST(sm_strrevcmp(s1, s2) < 0);
42 SM_TEST(sm_strrevcmp(s1, s2) < 0);
46 SM_TEST(sm_strrevcasecmp(s1, s2) == 0);
50 SM_TEST(sm_strrevcasecmp(s1, s2) == 0);
H A Dt-event.c34 SM_TEST(arg == 3);
35 SM_TEST(check == 0);
43 SM_TEST(arg == 1);
60 SM_TEST(1 == 1);
64 SM_TEST(2 == 2);
73 SM_TEST(3 == 3);
83 SM_TEST(4 == 4);
84 SM_TEST(check == 1);
H A Dt-fget.c29 SM_TEST(wfp != NULL);
33 SM_TEST(r >= 0);
36 SM_TEST(r == 0);
40 SM_TEST(rfp != NULL);
45 SM_TEST(r == -1);
46 SM_TEST(errno == 0);
50 SM_TEST(r == l);
55 SM_TEST(memcmp(buf, msg, l) == 0);
57 SM_TEST(r == 0);
H A Dt-fopen.c28 SM_TEST(out != NULL);
33 SM_TEST(r == 0);
34 SM_TEST(m == SM_IO_WRONLY);
H A Dt-string.c33 SM_TEST(strcmp(s, r) == 0);
37 SM_TEST(strcmp(s, buf) == 0);
41 SM_TEST(n == 11);
43 SM_TEST(strcmp(foo, r) == 0);
H A Dt-exc.c56 SM_TEST(x == 1);
68 SM_TEST(x == 2);
87 SM_TEST(x == 2 && exc->exc_argv[0].v_int == 17);
97 SM_TEST(strcmp(unknown, cant) == 0);
111 SM_TEST(strcmp(unknown, cant) == 0);
114 SM_TEST(x == 5 && exc->exc_argv[0].v_int == 94);
124 SM_TEST(strcmp(unknown, cant) == 0);
143 SM_TEST(strcmp(unknown, cant) == 0);
H A Dt-scanf.c39 if (!SM_TEST(strcmp(buf, r) == 0))
44 SM_TEST(i == 1);
45 SM_TEST(h == 2);
50 if (!SM_TEST(strcmp(buf, r) == 0))
55 SM_TEST(i == 1);
56 SM_TEST(h == 2);
H A Dt-smstdio.c32 SM_TEST(stream != NULL);
35 SM_TEST(fp != NULL);
51 SM_TEST(stream != NULL);
54 SM_TEST(fp != NULL);
57 if (SM_TEST(n == strlen(testmsg)))
60 SM_TEST(strcmp(buf, testmsg) == 0);
H A Dt-heap.c38 SM_TEST(p != NULL);
40 SM_TEST(p != NULL);
42 SM_TEST(p != NULL);
H A Dt-inet6_ntop.c48 SM_TEST(r == 1);
50 SM_TEST(ipf != NULL);
51 SM_TEST(strcmp(ipf, ip) == 0);
H A Dt-float.c39 if (!SM_TEST(strcmp(buf, r) == 0))
46 if (!SM_TEST(strcmp(buf, r) == 0))
60 if (!SM_TEST(d == d2))
68 if (!SM_TEST(strcmp(buf, r) == 0))
H A Dt-shm.c173 SM_TEST(r == 0);
177 SM_TEST(cnt <= MAX_CNT);
181 SM_TEST(r == 0);
183 SM_TEST(shm != (int *) 0);
189 SM_TEST(cnt <= MAX_CNT);
260 SM_TEST(r == 0);
H A Dt-match.c19 if (!SM_TEST(got == want)) \
H A Dt-strio.c31 SM_TEST(strcmp(buf, r) == 0);
H A Dt-rpool.c44 SM_TEST(rpool != NULL);
46 SM_TEST(att != NULL);
H A Dt-sem.c217 SM_TEST(r >= 0);
232 SM_TEST(r >= 0);
247 SM_TEST(r > 0);
262 SM_TEST(r >= 0);
276 SM_TEST(r >= 0);
293 SM_TEST(r >= 0);
308 SM_TEST(r >= 0);
386 SM_TEST(r == 0);
H A Dt-qic.c66 SM_TEST(exp == cmp);
164 SM_TEST(inout[i].qic_exp == cmp);
187 SM_TEST(los + 1 < sizeof(line));
191 SM_TEST(inout[i].qic_exp == cmp);
205 SM_TEST(!same);
218 SM_TEST(obp != NULL);
220 SM_TEST(inout[i].qic_exp == cmp);
/freebsd-10-stable/contrib/sendmail/include/sm/
H A Dtest.h22 # define SM_TEST(cond) sm_test(cond, #cond, __FILE__, __LINE__) macro
24 # define SM_TEST(cond) sm_test(cond, "cond", __FILE__, __LINE__) macro

Completed in 177 milliseconds