Home
last modified time | relevance | path

Searched refs:exp_err (Results 1 – 25 of 59) sorted by relevance

123

/third_party/ltp/testcases/kernel/syscalls/clock_settime/
Dclock_settime02.c23 int exp_err; member
32 .exp_err = EFAULT,
39 .exp_err = EINVAL,
46 .exp_err = EINVAL,
53 .exp_err = EINVAL,
60 .exp_err = EINVAL,
64 .exp_err = EINVAL,
68 .exp_err = EINVAL,
73 .exp_err = EINVAL,
77 .exp_err = EINVAL,
[all …]
/third_party/ltp/testcases/kernel/syscalls/clock_gettime/
Dclock_gettime02.c30 int exp_err; member
37 .exp_err = EINVAL,
41 .exp_err = EINVAL,
49 .exp_err = EFAULT,
53 .exp_err = EFAULT,
57 .exp_err = EFAULT,
61 .exp_err = EFAULT,
65 .exp_err = EFAULT,
70 .exp_err = EFAULT,
75 .exp_err = EFAULT,
[all …]
/third_party/ltp/testcases/kernel/syscalls/setxattr/
Dsetxattr01.c66 int exp_err; member
75 .exp_err = EINVAL,
82 .exp_err = ENODATA,
89 .exp_err = ERANGE,
96 .exp_err = E2BIG,
103 .exp_err = 0,
110 .exp_err = EEXIST,
118 .exp_err = 0,
126 .exp_err = ERANGE,
132 .exp_err = EFAULT,
[all …]
Dsetxattr02.c63 int exp_err; member
73 .exp_err = 0,
81 .exp_err = 0,
89 .exp_err = EEXIST,
98 .exp_err = EPERM,
106 .exp_err = EPERM,
114 .exp_err = EPERM,
122 .exp_err = EPERM,
142 if (!tc[i].exp_err) { in verify_setxattr()
166 if (tc[i].exp_err != TST_ERR) { in verify_setxattr()
[all …]
Dsetxattr03.c56 int exp_err; member
66 .exp_err = EPERM,
75 .exp_err = EPERM,
92 if (TST_ERR != tc[i].exp_err) { in verify_setxattr()
94 tst_strerrno(tc[i].exp_err)); in verify_setxattr()
/third_party/ltp/testcases/kernel/syscalls/fsetxattr/
Dfsetxattr01.c68 int exp_err; member
78 .exp_err = EINVAL,
85 .exp_err = ENODATA,
92 .exp_err = ERANGE,
99 .exp_err = E2BIG,
106 .exp_err = 0,
113 .exp_err = EEXIST,
121 .exp_err = 0,
129 .exp_err = ERANGE,
135 .exp_err = EFAULT,
[all …]
Dfsetxattr02.c69 int exp_err; member
81 .exp_err = 0,
90 .exp_err = 0,
99 .exp_err = EEXIST,
109 .exp_err = EPERM,
118 .exp_err = EPERM,
127 .exp_err = EPERM,
136 .exp_err = EPERM,
159 if (!tc[i].exp_err) { in verify_fsetxattr()
181 if (tc[i].exp_err != TST_ERR) { in verify_fsetxattr()
[all …]
/third_party/ltp/testcases/kernel/syscalls/adjtimex/
Dadjtimex02.c54 int exp_err; member
56 {.modes = SET_MODE, .exp_err = EPERM},
57 {.modes = SET_MODE, .exp_err = EFAULT},
58 {.modes = ADJ_TICK, .lowlimit = 900000, .delta = 1, .exp_err = EINVAL},
59 {.modes = ADJ_TICK, .highlimit = 1100000, .delta = 1, .exp_err = EINVAL},
60 {.modes = ADJ_OFFSET, .highlimit = 512000L, .delta = 1, .exp_err = EINVAL},
61 {.modes = ADJ_OFFSET, .lowlimit = -512000L, .delta = -1, .exp_err = EINVAL},
85 if (tc[i].exp_err == EPERM) in verify_adjtimex()
88 if (tc[i].exp_err == EINVAL) { in verify_adjtimex()
104 if (tc[i].exp_err == EFAULT) { in verify_adjtimex()
[all …]
/third_party/ltp/testcases/kernel/syscalls/clock_nanosleep/
Dclock_nanosleep01.c48 int exp_err; member
59 .exp_err = EINVAL,
68 .exp_err = EINVAL,
77 .exp_err = ENOTSUP,
86 .exp_err = EINTR,
93 .exp_err = EFAULT,
102 .exp_err = EFAULT,
182 tc->exp_err = EINVAL; in do_test()
211 if ((TST_RET != tc->exp_ret) || (TST_ERR != tc->exp_err)) { in do_test()
214 tc->exp_ret, tst_strerrno(tc->exp_err), tc->exp_err); in do_test()
/third_party/ltp/testcases/kernel/syscalls/fremovexattr/
Dfremovexattr02.c45 int exp_err; member
51 .exp_err = ENODATA,
56 .exp_err = EBADF,
59 .exp_err = EFAULT,
71 if (tc[i].exp_err == TST_ERR) { in verify_fremovexattr()
77 tst_strerrno(tc[i].exp_err)); in verify_fremovexattr()
102 if (!tc[i].key && tc[i].exp_err == EFAULT) in setup()
/third_party/libxml2/python/tests/
Dinput_callback.py47 def run_test(desc, docpath, catalog, exp_status="verified", exp_err=[], test_callback=None, argument
78 elif actual_err != exp_err:
81 for s,m in exp_err: print(" [%2d] '%s'" % (s,m))
90 exp_status="not loaded", exp_err=[
100 exp_status="loaded", exp_err=[
113 exp_status="loaded", exp_err=[
121 exp_status="not loaded", exp_err=[
141 exp_status="not loaded", exp_err=[
/third_party/ltp/testcases/kernel/syscalls/fgetxattr/
Dfgetxattr02.c77 int exp_err; member
90 .exp_err = 0,
101 .exp_err = 0,
112 .exp_err = 0,
122 .exp_err = ENODATA,
133 .exp_err = ENODATA,
144 .exp_err = ENODATA,
155 .exp_err = ENODATA,
196 if (tc[i].exp_err == ENODATA && tst_kvercmp(3, 0, 0) < 0) in verify_fgetxattr()
197 tc[i].exp_err = EPERM; in verify_fgetxattr()
[all …]
Dfgetxattr01.c52 int exp_err; member
60 .exp_err = ENODATA,
67 .exp_err = ERANGE,
74 .exp_err = 0,
101 if (tc[i].exp_err == TST_ERR) { in verify_fgetxattr()
/third_party/ltp/testcases/kernel/syscalls/clock_adjtime/
Dclock_adjtime02.c73 int exp_err; member
80 .exp_err = EINVAL,
84 .exp_err = EINVAL,
89 .exp_err = EFAULT,
96 .exp_err = EINVAL,
103 .exp_err = EINVAL,
108 .exp_err = EPERM,
164 if (tc[i].exp_err == EFAULT) { in verify_clock_adjtime()
177 if (tc[i].exp_err != TST_ERR) { in verify_clock_adjtime()
180 tc[i].exp_err, TST_ERR, tc[i].modes, whoami); in verify_clock_adjtime()
/third_party/ltp/testcases/kernel/syscalls/quotactl/
Dquotactl09.c61 int exp_err; member
104 if (tc->exp_err == EPERM) { in verify_quotactl()
110 if (tc->exp_err == ENOTBLK) { in verify_quotactl()
114 if (tc->exp_err == ENOSYS) { in verify_quotactl()
116 tc->addr), tc->exp_err, "syscall(quotactl_fd)"); in verify_quotactl()
120 if (tc->exp_err == ENOSYS) { in verify_quotactl()
125 if (tc->exp_err == ENOTBLK) in verify_quotactl()
130 tc->exp_err, "do_quotactl()"); in verify_quotactl()
/third_party/libbpf/src/
Dlibbpf_probes.c29 int fd, err, exp_err = 0; in probe_prog_load() local
60 exp_err = -EINVAL; in probe_prog_load()
69 exp_err = -EINVAL; in probe_prog_load()
76 exp_err = -524; /* -ENOTSUPP */ in probe_prog_load()
109 if (exp_err) { in probe_prog_load()
110 if (fd >= 0 || err != exp_err) in probe_prog_load()
196 int fd = -1, btf_fd = -1, fd_inner = -1, exp_err = 0, err = 0; in probe_map_create() local
243 exp_err = -524; /* -ENOTSUPP */ in probe_map_create()
300 if (exp_err) in probe_map_create()
301 return fd < 0 && err == exp_err ? 1 : 0; in probe_map_create()
/third_party/ltp/testcases/kernel/syscalls/getxattr/
Dgetxattr01.c71 int exp_err; member
79 .exp_err = ENODATA,
86 .exp_err = ERANGE,
93 .exp_err = 0,
115 if (TEST_ERRNO == tc[i].exp_err) { in main()
120 tc[i].exp_err); in main()
/third_party/ltp/testcases/kernel/syscalls/fstat/
Dfstat03.c34 int exp_err; member
46 if (tc->exp_err == TST_ERR) { in check_fstat()
49 tst_strerrno(tc->exp_err)); in check_fstat()
53 tst_strerrno(tc->exp_err)); in check_fstat()
73 if (tcases[tc_num].exp_err == EFAULT && WTERMSIG(status) == SIGSEGV) { in run()
/third_party/ltp/testcases/kernel/syscalls/utimensat/
Dutimensat01.c53 int exp_err; member
164 if (tc->exp_err != -1) in update_error()
174 tc->exp_err = EACCES; in update_error()
176 tc->exp_err = EPERM; in update_error()
241 } else if (tc->exp_err == EFAULT) { in run()
248 } else if (tc->exp_err == EFAULT) { in run()
257 if (!tc->exp_err) { in run()
259 } else if (tc->exp_err == TST_ERR) { in run()
263 i, tst_strerrno(tc->exp_err)); in run()
265 } else if (tc->exp_err) { in run()
/third_party/ltp/testcases/kernel/syscalls/io_setup/
Dio_setup01.c31 static void verify_failure(unsigned int nr, io_context_t *ctx, int init_val, long exp_err) in verify_failure() argument
43 if (TST_RET == -exp_err) { in verify_failure()
45 tst_strerrno(exp_err)); in verify_failure()
49 tst_strerrno(exp_err)); in verify_failure()
/third_party/ltp/testcases/kernel/syscalls/ioctl/
Dioctl08.c42 int exp_err; member
70 if (tc->exp_err != TST_ERR) { in verify_ioctl()
73 tst_strerrno(TST_ERR), tst_strerrno(tc->exp_err)); in verify_ioctl()
93 tst_strerrno(tc->exp_err)); in verify_ioctl()
/third_party/ltp/testcases/kernel/syscalls/getcwd/
Dgetcwd01.c34 int exp_err; member
56 if (TST_ERR != tc->exp_err) { in verify_getcwd()
58 tst_strerrno(tc->exp_err)); in verify_getcwd()
/third_party/ltp/testcases/kernel/containers/timens/
Dtimens01.c25 int exp_err; member
52 if (errno != tc->exp_err) { in verify_ns_clock()
54 tc->desc, tst_strerrno(tc->exp_err)); in verify_ns_clock()
/third_party/ltp/testcases/kernel/syscalls/flock/
Dflock02.c26 int exp_err; member
45 if (tc->exp_err == TST_ERR) { in verify_flock()
49 "expected %s", tst_strerrno(tc->exp_err)); in verify_flock()
/third_party/ltp/testcases/kernel/syscalls/ipc/shmget/
Dshmget02.c54 int exp_err; member
95 TST_EXP_FAIL2(shmget(*tc->shmkey, tc->size, tc->flags), tc->exp_err, in do_test()
107 TST_EXP_FAIL2(shmget(*tc->shmkey, tc->size, tc->flags), tc->exp_err, in do_test()
133 tcases[i].exp_err = hugetlb_errno; in setup()

123