Lines Matching refs:uid

14 static void test_uid_to_name_one(uid_t uid, const char *name) {  in test_uid_to_name_one()  argument
17 log_info("/* %s("UID_FMT", \"%s\") */", __func__, uid, name); in test_uid_to_name_one()
19 assert_se(t = uid_to_name(uid)); in test_uid_to_name_one()
57 uid_t uid; in TEST() local
59 r = parse_uid("0", &uid); in TEST()
61 assert_se(uid == 0); in TEST()
63 r = parse_uid("1", &uid); in TEST()
65 assert_se(uid == 1); in TEST()
67 r = parse_uid("01", &uid); in TEST()
69 assert_se(uid == 1); in TEST()
71 r = parse_uid("001", &uid); in TEST()
73 assert_se(uid == 1); in TEST()
75 r = parse_uid("100", &uid); in TEST()
77 assert_se(uid == 100); in TEST()
79 r = parse_uid("65535", &uid); in TEST()
81 assert_se(uid == 100); in TEST()
83 r = parse_uid("0x1234", &uid); in TEST()
85 assert_se(uid == 100); in TEST()
87 r = parse_uid("0o1234", &uid); in TEST()
89 assert_se(uid == 100); in TEST()
91 r = parse_uid("0b1234", &uid); in TEST()
93 assert_se(uid == 100); in TEST()
95 r = parse_uid("+1234", &uid); in TEST()
97 assert_se(uid == 100); in TEST()
99 r = parse_uid("-1234", &uid); in TEST()
101 assert_se(uid == 100); in TEST()
103 r = parse_uid(" 1234", &uid); in TEST()
105 assert_se(uid == 100); in TEST()
107 r = parse_uid("01234", &uid); in TEST()
109 assert_se(uid == 100); in TEST()
111 r = parse_uid("001234", &uid); in TEST()
113 assert_se(uid == 100); in TEST()
115 r = parse_uid("0001234", &uid); in TEST()
117 assert_se(uid == 100); in TEST()
119 r = parse_uid("-0", &uid); in TEST()
121 assert_se(uid == 100); in TEST()
123 r = parse_uid("+0", &uid); in TEST()
125 assert_se(uid == 100); in TEST()
127 r = parse_uid("00", &uid); in TEST()
129 assert_se(uid == 100); in TEST()
131 r = parse_uid("000", &uid); in TEST()
133 assert_se(uid == 100); in TEST()
135 r = parse_uid("asdsdas", &uid); in TEST()
137 assert_se(uid == 100); in TEST()
324 static void test_get_user_creds_one(const char *id, const char *name, uid_t uid, gid_t gid, const c… in test_get_user_creds_one() argument
332 __func__, id, name, uid, gid, home, shell); in test_get_user_creds_one()
343 assert_se(ruid == uid); in test_get_user_creds_one()