Home
last modified time | relevance | path

Searched full:is_int (Results 1 – 17 of 17) sorted by relevance

/freebsd/contrib/pam-krb5/tests/pam-util/
H A Doptions-t.c86 is_int((v), (c), "...and value is correct"); \
105 is_int((p), seen->lines[0].priority, "...priority for %s", (a)); \
179 is_int(false, args->config->debug, "...debug default"); in main()
180 is_int(10, args->config->expires, "...expires default"); in main()
181 is_int(true, args->config->ignore_root, "...ignore_root default"); in main()
182 is_int(0, args->config->minimum_uid, "...minimum_uid default"); in main()
189 is_int(false, args->config->debug, "...debug still default"); in main()
190 is_int(10, args->config->expires, "...expires default"); in main()
191 is_int(true, args->config->ignore_root, "...ignore_root still default"); in main()
192 is_int(0, args->config->minimum_uid, "...minimum_uid still default"); in main()
[all …]
H A Dvector-t.c47 is_int(1, vector->count, "vector_add increases count"); in main()
50 is_int(4, vector->allocated, "vector_resize works"); in main()
54 is_int(4, vector->allocated, "...and no reallocation when adding strings"); in main()
55 is_int(4, vector->count, "...and the count matches"); in main()
68 is_int(4, copy->count, "...and has right count"); in main()
69 is_int(4, copy->allocated, "...and has right allocated count"); in main()
78 is_int(0, vector->count, "vector_clear works"); in main()
79 is_int(4, vector->allocated, "...but doesn't free the allocation"); in main()
85 is_int(2, vector->count, "added two strings to the vector"); in main()
88 is_int(1, vector->count, "vector_resize shrinks the vector"); in main()
[all …]
H A Dfakepam-t.c66 is_int(PAM_BAD_ITEM, pam_putenv(pamh, "TEST"), "delete when NULL"); in main()
78 is_int(PAM_SUCCESS, pam_putenv(pamh, "TEST=foo"), "putenv TEST"); in main()
80 is_int(PAM_SUCCESS, pam_putenv(pamh, "FOO=bar"), "putenv FOO"); in main()
81 is_int(PAM_SUCCESS, pam_putenv(pamh, "BAR=baz"), "putenv BAR"); in main()
88 is_int(PAM_BAD_ITEM, pam_putenv(pamh, "BAZ"), "putenv nonexistent delete"); in main()
89 is_int(PAM_SUCCESS, pam_putenv(pamh, "FOO=foo"), "putenv replace"); in main()
90 is_int(PAM_SUCCESS, pam_putenv(pamh, "FOON=bar=n"), "putenv prefix"); in main()
93 is_int(PAM_BAD_ITEM, pam_putenv(pamh, "FO"), "putenv delete FO"); in main()
94 is_int(PAM_SUCCESS, pam_putenv(pamh, "FOO"), "putenv delete FOO"); in main()
111 is_int(PAM_SUCCESS, pam_putenv(pamh, "FOO=foo"), "putenv FOO"); in main()
H A Dargs-t.c60 is_int(args->debug, false, "...and debug is false"); in main()
61 is_int(args->silent, false, "...and silent is false"); in main()
77 is_int(args->silent, true, "...and silent is true"); in main()
H A Dlogging-t.c50 is_int((p), seen->lines[0].priority, "priority %d", (p)); \
65 is_int((p), seen->lines[0].priority, "priority %s", (n)); \
82 is_int((p), seen->lines[0].priority, "priority %s", (n)); \
/freebsd/contrib/pam-krb5/tests/portable/
H A Dmkstemp-t.c45 is_int(-1, test_mkstemp(tooshort), "too short of template"); in main()
46 is_int(EINVAL, errno, "...with correct errno"); in main()
49 is_int(-1, test_mkstemp(bad1), "bad template"); in main()
50 is_int(EINVAL, errno, "...with correct errno"); in main()
53 is_int(-1, test_mkstemp(bad2), "template doesn't end in XXXXXX"); in main()
54 is_int(EINVAL, errno, "...with correct errno"); in main()
73 is_int(length, write(fd, template, length), "write to open file works"); in main()
75 is_int(length, read(fd, buffer, length), "...and the data is there"); in main()
H A Dasprintf-t.c50 is_int(7, test_asprintf(&result, "%s", "testing"), "asprintf length"); in main()
54 is_int(0, test_asprintf(&result, "%s", ""), "asprintf empty length"); in main()
59 is_int(6, vatest(&result, "%d %s", 2, "test"), "vasprintf length"); in main()
63 is_int(0, vatest(&result, "%s", ""), "vasprintf empty length"); in main()
H A Dstrndup-t.c57 is_int(errno, EINVAL, "...and returns EINVAL"); in main()
/freebsd/contrib/pam-krb5/tests/module/
H A Dcache-t.c57 is_int(0, stat(file, &st), "cache exists"); in check_cache()
58 is_int(getuid(), st.st_uid, "...with correct UID"); in check_cache()
59 is_int(getgid(), st.st_gid, "...with correct GID"); in check_cache()
60 is_int(0600, (st.st_mode & 0777), "...with correct permissions"); in check_cache()
67 is_int(0, code, "able to resolve Kerberos ticket cache"); in check_cache()
69 is_int(0, code, "able to get principal"); in check_cache()
71 is_int(0, code, "...and principal is valid"); in check_cache()
87 is_int(0, code, "able to get krbtgt credentials"); in check_cache()
H A Dtrace-t.c38 is_int(0, access(trace, F_OK), "Trace file was created"); in main()
42 is_int(-1, access(trace, F_OK), "Trace file does not exist"); in main()
H A Dpam-user-t.c35 is_int(PAM_SUCCESS, retval, "Found PAM_USER"); in check_pam_user()
H A Dpassword-t.c43 is_int(PAM_SUCCESS, retval, "Found PAM_AUTHTOK"); in check_authtok()
/freebsd/contrib/pam-krb5/tests/fakepam/
H A Dscript.c185 is_int(prompt->style, msg[i]->msg_style, "style of prompt %lu", in converse()
225 is_int(wanted->lines[i].priority, 0, "output priority %lu", in check_output()
232 is_int(wanted->lines[i].priority, seen->lines[i].priority, in check_output()
239 is_int(wanted->lines[i].priority, 0, "output priority %lu", in check_output()
314 is_int(action->status, status, "status for %s", action->name); in run_script()
/freebsd/contrib/pam-krb5/tests/
H A DREADME112 test should use is_int(), is_string(), is_double(), or is_hex() as
130 is_int(42, 42, NULL);
/freebsd/contrib/pam-krb5/tests/tap/
H A Dbasic.h99 int is_int(long, long, const char *format, ...)
H A Dprocess.c182 is_int(status, WEXITSTATUS(rval), "%s (status)", msg); in is_function_output()
H A Dbasic.c547 is_int(long left, long right, const char *format, ...) in is_int() function