Searched defs:NULL (Results 1 - 8 of 8) sorted by relevance

/dovecot/src/lib/
H A Dtest-net.c103 host = NULL;
104 test_assert(net_str2hostport("[1::4]:", 1234, &host, &port) < 0 && host == NULL); local
105 test_assert(net_str2hostport("[1::4]:0", 1234, &host, &port) < 0 && host == NULL); local
106 test_assert(net_str2hostport("[1::4]:x", 1234, &host, &port) < 0 && host == NULL); local
119 host = NULL;
120 test_assert(net_str2hostport("foo:", 1234, &host, &port) < 0 && host == NULL); local
121 test_assert(net_str2hostport("foo:0", 1234, &host, &port) < 0 && host == NULL); local
122 test_assert(net_str2hostport("foo:x", 1234, &host, &port) < 0 && host == NULL); local
H A Dtest-base32.c42 if (p == NULL)
87 if (p == NULL)
161 test_assert(base32_decode(str_data(str), str_len(str), NULL, dest) >= 0); local
176 test_assert(base32hex_decode(str_data(str), str_len(str), NULL, dest) >= 0); local
H A Dtest-base64.c97 test_assert(base64_decode(str_data(str), str_len(str), NULL, dest) >= 0); local
H A Dmacros.h6 #ifndef NULL
7 # define NULL ((void *)0) macro
42 ((void *) (((uintptr_t)NULL) + (i)))
44 ((type) ((const char *) (p) - (const char *) NULL))
H A Dcompat.h15 /* We really want NULL to be a pointer, since we have various type-checks
20 # undef NULL macro
21 # define NULL ((void *)0) macro
/dovecot/src/lib-http/
H A Dtest-http-url.c306 const char *error = NULL;
310 if (urlb->host.name == NULL) urlb = NULL;
312 urlp = NULL;
315 valid_url_tests[i].url), urlp != NULL, error); local
316 if (urlp != NULL) {
317 if (urlp->host.name == NULL || urlt->host.name == NULL) {
324 if (urlp->user == NULL || urlt->user == NULL) {
427 test_out_reason(t_strdup_printf("parse %s", url), urlp == NULL, error); local
464 test_out_reason(t_strdup_printf("parse %s", url), urlp != NULL, error); local
[all...]
/dovecot/src/lib-imap/
H A Dtest-imap-url.c81 .mailbox = NULL }
87 .mailbox = NULL }
128 .mailbox = NULL }
217 .uid = 56, .section = NULL }
233 .uid = 234, .section = NULL, .partial_offset = 10, .partial_size = 250 }
621 const char *error = NULL;
625 if (urlb->host.name == NULL) urlb = NULL;
627 urlp = NULL;
630 valid_url_tests[i].url), urlp != NULL, erro local
952 test_out_reason(t_strdup_printf("parse %s", url), urlp == NULL, error); local
1008 test_out_reason(t_strdup_printf("parse %s", url), urlp != NULL, error); local
[all...]
/dovecot/src/lib-storage/
H A Dtest-mail-storage.c18 storage_r->user->event = event_create(NULL);
79 test_assert(strstr(mail_storage_get_last_error(&storage, &mail_error), MAIL_ERRSTR_CRITICAL_MSG) != NULL); local
88 test_assert(strstr(mail_storage_get_last_error(&storage, &mail_error), MAIL_ERRSTR_CRITICAL_MSG) != NULL); local
90 test_assert(strstr(mail_storage_get_last_internal_error(&storage, &mail_error), MAIL_ERRSTR_CRITICAL_MSG) != NULL); local
98 test_assert(strstr(mail_storage_get_last_error(&storage, &mail_error), MAIL_ERRSTR_CRITICAL_MSG) != NULL); local
109 test_assert(strstr(mail_storage_get_last_error(&storage, &mail_error), MAIL_ERRSTR_CRITICAL_MSG) != NULL); local
120 test_assert(strstr(mail_storage_get_last_error(&storage, &mail_error), MAIL_ERRSTR_CRITICAL_MSG) != NULL); local
124 test_assert(strstr(errstr+11, MAIL_ERRSTR_CRITICAL_MSG) != NULL);
186 test_assert(strstr(mail_storage_get_last_error(&storage, &mail_error), MAIL_ERRSTR_CRITICAL_MSG) != NULL); local
202 test_assert(strstr(mail_storage_get_last_error(&storage, &mail_error), MAIL_ERRSTR_CRITICAL_MSG) != NULL); local
[all...]

Completed in 200 milliseconds