Home
last modified time | relevance | path

Searched refs:TERRNO (Results 1 – 25 of 605) sorted by relevance

12345678910>>...25

/third_party/ltp/lib/
Dsafe_macros.c33 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_basename()
49 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_chdir()
65 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_close()
81 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_creat()
96 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_dirname()
111 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_getcwd()
126 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_getpwnam()
142 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_getrusage()
157 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_malloc()
172 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_mkdir()
[all …]
Dtst_safe_macros.c27 tst_brk(TBROK | TERRNO, in safe_setpgid()
41 tst_brk(TBROK | TERRNO, in safe_getpgid()
61 tst_brk(TBROK | TERRNO, in safe_fanotify_init()
77 tst_brk_(filename, lineno, TBROK | TERRNO, in safe_personality()
91 tst_brk_(file, lineno, TBROK | TERRNO, in safe_setregid()
107 tst_brk_(file, lineno, TBROK | TERRNO, in safe_setreuid()
125 tst_brk_(file, lineno, TBROK | TERRNO, in safe_sigaction()
141 tst_brk_(file, lineno, TBROK | TERRNO, in safe_getgrnam()
172 tst_brk_(file, lineno, TBROK | TERRNO, in safe_getgrgid()
185 tst_brk_(file, lineno, TBROK | TERRNO, in safe_chroot()
[all …]
Dsafe_net.c127 tst_brkm(ttype | TERRNO, cleanup_fn, in safe_socket()
153 tst_brkm(ttype | TERRNO, NULL, in safe_socketpair()
169 tst_brkm(TBROK | TERRNO, NULL, in safe_getsockopt()
184 tst_brkm(TBROK | TERRNO, NULL, in safe_setsockopt()
200 tst_brkm(TBROK | TERRNO, NULL, in safe_send()
218 tst_brkm(TBROK | TERRNO, NULL, in safe_sendto()
236 tst_brkm(TBROK | TERRNO, NULL, in safe_sendmsg()
258 tst_brkm(TBROK | TERRNO, NULL, in safe_recvmsg()
285 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_bind()
301 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_bind()
[all …]
Dtst_safe_sysv_ipc.c38 tst_brk(TBROK | TERRNO, "%s:%d: msgget(%i, %x) failed", in safe_msgget()
52 tst_brk(TBROK | TERRNO, in safe_msgsnd()
67 tst_brk(TBROK | TERRNO, in safe_msgrcv()
82 tst_brk(TBROK | TERRNO, in safe_msgctl()
98 tst_brk(TBROK | TERRNO, "%s:%d: shmget(%i, %zu, %x) failed", in safe_shmget()
112 tst_brk(TBROK | TERRNO, "%s:%d: shmat(%i, %p, %x) failed", in safe_shmat()
125 tst_brk(TBROK | TERRNO, "%s:%d: shmdt(%p) failed", in safe_shmdt()
139 tst_brk(TBROK | TERRNO, in safe_shmctl()
Dtst_device.c99 tst_resm(TINFO | TERRNO, in tst_find_free_loopdev()
104 tst_resm(TBROK | TERRNO, "Failed to open " LOOP_CONTROL_FILE); in tst_find_free_loopdev()
150 tst_resm(TWARN | TERRNO, "open('%s', O_RDWR) failed", dev); in tst_attach_device()
156 tst_resm(TWARN | TERRNO, "open('%s', O_RDWR) failed", file); in tst_attach_device()
164 tst_resm(TWARN | TERRNO, "ioctl(%s, LOOP_SET_FD, %s) failed", in tst_attach_device()
179 tst_resm(TWARN | TERRNO, in tst_attach_device()
195 tst_resm(TWARN | TERRNO, "open(%s) failed", dev); in tst_detach_device()
236 tst_resm(TWARN | TERRNO, "Failed to create %s", filename); in tst_acquire_loop_device()
265 tst_resm(TWARN | TERRNO, "stat() failed"); in tst_acquire_device__()
276 tst_resm(TWARN | TERRNO, in tst_acquire_device__()
[all …]
Dtst_wallclock.c26 tst_brk(TBROK | TERRNO, "tst_clock_gettime() realtime failed"); in tst_wallclock_save()
30 tst_brk(TCONF | TERRNO, in tst_wallclock_save()
34 tst_brk(TBROK | TERRNO, "tst_clock_gettime() monotonic failed"); in tst_wallclock_save()
50 tst_brk(TBROK | TERRNO, "tst_clock_gettime() monotonic failed"); in tst_wallclock_restore()
59 tst_brk(TBROK | TERRNO, "tst_clock_settime() realtime failed"); in tst_wallclock_restore()
/third_party/ltp/testcases/kernel/syscalls/open/
Dopen10.c128 tst_resm(TFAIL | TERRNO, "mkdir(%s) failed", DIR_A); in main()
133 tst_resm(TFAIL | TERRNO, "chown(%s) failed", DIR_A); in main()
138 tst_resm(TFAIL | TERRNO, "stat(%s) failed", DIR_A); in main()
161 tst_resm(TFAIL | TERRNO, "mkdir(%s) failed", DIR_B); in main()
166 tst_resm(TFAIL | TERRNO, "chown(%s) failed", DIR_B); in main()
171 tst_resm(TFAIL | TERRNO, "chmod(%s) failed", DIR_B); in main()
176 tst_resm(TFAIL | TERRNO, "stat(%s) failed", DIR_B); in main()
226 tst_resm(TFAIL | TERRNO, "open(%s) failed", nosetgid_A); in main()
232 tst_resm(TFAIL | TERRNO, "stat(%s) failed", nosetgid_A); in main()
255 tst_resm(TFAIL | TERRNO, "open(%s) failed", setgid_A); in main()
[all …]
/third_party/ltp/testcases/kernel/pty/
Dpty01.c83 tst_brkm(TBROK | TERRNO, NULL, "ptsname() call failed"); in test1()
87 tst_brkm(TBROK | TERRNO, NULL, "grantpt() call failed"); in test1()
91 tst_brkm(TBROK | TERRNO, NULL, "stat(%s) failed", slavename); in test1()
110 tst_brkm(TBROK | TERRNO, NULL, "unlockpt() failed"); in test1()
123 tst_brkm(TFAIL | TERRNO, NULL, "write to master"); in test1()
128 tst_brkm(TFAIL | TERRNO, NULL, "read from slave"); in test1()
141 tst_brkm(TFAIL | TERRNO, NULL, "write to slave"); in test1()
146 tst_brkm(TFAIL | TERRNO, NULL, "read from master"); in test1()
176 tst_brkm(TBROK | TERRNO, NULL, "close of slave"); in test1()
179 tst_brkm(TBROK | TERRNO, NULL, "close of master"); in test1()
[all …]
/third_party/ltp/testcases/kernel/device-drivers/rtc/
Drtc01.c73 tst_resm(TFAIL | TERRNO, "RTC_RD_TIME ioctl failed"); in read_alarm_test()
103 tst_resm(TCONF | TERRNO, "RTC_ALM_SET not supported"); in read_alarm_test()
105 tst_resm(TFAIL | TERRNO, "RTC_ALM_SET ioctl failed"); in read_alarm_test()
113 tst_resm(TCONF | TERRNO, "RTC_ALM_READ not suported"); in read_alarm_test()
115 tst_resm(TFAIL | TERRNO, "RTC_ALM_READ ioctl failed"); in read_alarm_test()
126 tst_resm(TINFO | TERRNO, "RTC_AIE_ON ioctl failed"); in read_alarm_test()
141 tst_resm(TFAIL | TERRNO, "select failed"); in read_alarm_test()
146 tst_resm(TFAIL | TERRNO, "read failed"); in read_alarm_test()
158 tst_resm(TFAIL | TERRNO, "RTC_AIE_OFF ioctl failed"); in read_alarm_test()
181 tst_resm(TCONF | TERRNO, "RTC_UIE_ON not supported"); in update_interrupts_test()
[all …]
/third_party/ltp/testcases/kernel/syscalls/epoll_pwait/
Depoll_pwait01.c87 tst_brkm(TFAIL | TERRNO, NULL, "sigemptyset() failed"); in setup()
90 tst_brkm(TFAIL | TERRNO, NULL, "sigaddset() failed"); in setup()
95 tst_brkm(TFAIL | TERRNO, NULL, "sigemptyset() failed"); in setup()
98 tst_brkm(TFAIL | TERRNO, NULL, "sigaction() failed"); in setup()
104 tst_brkm(TBROK | TERRNO, cleanup, in setup()
112 tst_brkm(TBROK | TERRNO, cleanup, in setup()
159 tst_brkm(TBROK | TERRNO, cleanup, "fork() failed"); in do_test()
177 tst_brkm(TBROK | TERRNO, cleanup, in do_child()
190 tst_resm(TWARN | TERRNO, "failed to close epfd"); in cleanup()
193 tst_resm(TWARN | TERRNO, "close(fds[0]) failed"); in cleanup()
[all …]
/third_party/ltp/testcases/kernel/syscalls/mmap/
Dmmap10.c130 tst_brkm(TBROK | TERRNO, cleanup, "open"); in mmapzero()
135 tst_brkm(TFAIL | TERRNO, cleanup, "mmap"); in mmapzero()
139 tst_brkm(TBROK | TERRNO, cleanup, "madvise"); in mmapzero()
146 tst_brkm(TBROK | TERRNO, cleanup, "fork"); in mmapzero()
149 tst_brkm(TFAIL | TERRNO, cleanup, "munmap"); in mmapzero()
157 tst_brkm(TBROK | TERRNO, cleanup, "fork"); in mmapzero()
160 tst_brkm(TFAIL | TERRNO, cleanup, in mmapzero()
166 tst_brkm(TBROK | TERRNO, cleanup, "fork"); in mmapzero()
169 tst_brkm(TFAIL | TERRNO, cleanup, in mmapzero()
179 tst_resm(TFAIL | TERRNO, "munmap all"); in mmapzero()
[all …]
Dmmap02.c83 tst_resm(TFAIL | TERRNO, "mmap of %s failed", TEMPFILE); in main()
92 tst_brkm(TFAIL | TERRNO, cleanup, in main()
111 tst_brkm(TFAIL | TERRNO, cleanup, "munmapping failed"); in main()
142 tst_brkm(TFAIL | TERRNO, cleanup, "opening %s failed", in setup()
149 tst_brkm(TFAIL | TERRNO, cleanup, in setup()
158 tst_brkm(TFAIL | TERRNO, cleanup, "fchmod(%s, 0444) failed", in setup()
164 tst_brkm(TFAIL | TERRNO, cleanup, "closing %s failed", in setup()
/third_party/ltp/testcases/kernel/syscalls/clone/
Dclone06.c66 tst_brkm(TBROK | TERRNO, cleanup, "pipe() failed"); in main()
76 tst_resm(TWARN | TERRNO, "close(pfd[1]) failed"); in main()
80 tst_brkm(TBROK | TERRNO, cleanup, in main()
85 tst_resm(TWARN | TERRNO, "close(pfd[0]) failed"); in main()
95 tst_brkm(TBROK | TERRNO, cleanup, in main()
127 tst_brkm(TBROK | TERRNO, cleanup, "close(pfd[0]) failed"); in child_environ()
130 tst_resm(TWARN | TERRNO, "sprintf() failed"); in child_environ()
133 tst_resm(TWARN | TERRNO, "write to pipe failed"); in child_environ()
137 tst_resm(TWARN | TERRNO, "close(pfd[1]) failed"); in child_environ()
Dclone02.c153 tst_resm(TWARN | TERRNO, in main()
194 tst_brkm(TBROK | TERRNO, cleanup, "sprintf() failed"); in setup()
200 tst_resm(TWARN | TERRNO, "unlink(%s) failed", file_name); in cleanup()
211 tst_resm(TWARN | TERRNO, "getcwd() failed in test_setup()"); in test_setup()
227 tst_resm(TWARN | TERRNO, "open() failed in test_setup()"); in test_setup()
243 tst_resm(TWARN | TERRNO, "sigaction() failed in test_setup()"); in test_setup()
324 tst_resm(TWARN | TERRNO, "close failed in test_FILES"); in test_FILES()
342 tst_resm(TWARN | TERRNO, "tst_get_tmpdir failed"); in test_FS()
345 tst_resm(TWARN | TERRNO, "chdir failed in test_FS"); in test_FS()
371 tst_resm(TWARN | TERRNO, "signal failed in test_SIG"); in test_SIG()
[all …]
/third_party/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl11.c110 tst_brkm(TBROK | TERRNO, cleanup, in setup()
123 tst_resm(TFAIL | TERRNO, "fcntl on file failed"); in do_child()
182 tst_resm(TFAIL | TERRNO, "fcntl on file failed"); in unlock_file()
265 tst_brkm(TBROK | TERRNO, cleanup, in main()
271 tst_brkm(TBROK | TERRNO, cleanup, "fork failed"); in main()
284 tst_resm(TFAIL | TERRNO, "fcntl on file failed"); in main()
287 tst_resm(TFAIL | TERRNO, "fcntl on file failed"); in main()
322 tst_resm(TFAIL | TERRNO, "fcntl on file failed"); in main()
325 tst_resm(TFAIL | TERRNO, "fcntl on file failed"); in main()
360 tst_resm(TFAIL | TERRNO, "fcntl on file failed"); in main()
[all …]
Dfcntl01.c66 tst_resm(TBROK | TERRNO, "open failed"); in main()
76 tst_resm(TFAIL | TERRNO, "fcntl(.., 1) failed"); in main()
83 tst_resm(TFAIL | TERRNO, "fcntl(.., fd2[3]) failed"); in main()
90 tst_resm(TFAIL | TERRNO, "fcntl(.., fd2[5]) failed"); in main()
103 tst_resm(TBROK | TERRNO, "fcntl(.., O_NDELAY) failed"); in main()
112 tst_resm(TFAIL | TERRNO, "fcntl(.., O_APPEND) failed"); in main()
143 tst_resm(TFAIL | TERRNO, in main()
151 tst_resm(TFAIL | TERRNO, in main()
162 tst_resm(TFAIL | TERRNO, in main()
/third_party/ltp/testcases/kernel/syscalls/writev/
Dwritev02.c115 tst_brkm(TFAIL | TERRNO, cleanup, in main()
119 tst_brkm(TFAIL | TERRNO, cleanup, in main()
123 tst_brkm(TFAIL | TERRNO, cleanup, in main()
128 tst_brkm(TFAIL | TERRNO, cleanup, in main()
133 tst_brkm(TFAIL | TERRNO, cleanup, "close failed"); in main()
136 tst_brkm(TFAIL | TERRNO, cleanup, in main()
190 tst_brkm(TBROK | TERRNO, cleanup, "mmap failed"); in setup()
201 tst_resm(TWARN | TERRNO, "unmap failed"); in cleanup()
203 tst_resm(TWARN | TERRNO, "unlink failed"); in cleanup()
223 tst_resm(TFAIL | TERRNO, "unlink failed"); in sighandler()
[all …]
/third_party/ltp/testcases/kernel/syscalls/eventfd/
Deventfd01.c93 tst_resm(TINFO | TERRNO, "error clearing counter"); in clear_counter()
121 tst_resm(TINFO | TERRNO, "error setting counter value"); in set_counter()
138 tst_resm(TBROK | TERRNO, "error reading eventfd"); in read_test()
168 tst_resm(TFAIL | TERRNO, "read failed (wanted EAGAIN)"); in read_eagain_test()
232 tst_resm(TFAIL | TERRNO, "read failed (wanted EINVAL)"); in read_einval_test()
251 tst_resm(TFAIL | TERRNO, in write_einval_test()
278 tst_resm(TFAIL | TERRNO, in write_einval2_test()
309 tst_resm(TBROK | TERRNO, "select() failed"); in readfd_set_test()
341 tst_resm(TBROK | TERRNO, "select() failed"); in readfd_not_set_test()
375 tst_resm(TBROK | TERRNO, "select: error getting fd status"); in writefd_set_test()
[all …]
/third_party/ltp/testcases/kernel/syscalls/msync/
Dmsync02.c117 tst_brkm(TBROK | TERRNO, NULL, "getpagesize failed"); in setup()
122 tst_brkm(TBROK | TERRNO, cleanup, "open failed"); in setup()
127 tst_brkm(TBROK | TERRNO, cleanup, "write failed"); in setup()
136 tst_brkm(TBROK | TERRNO, cleanup, "mmap failed"); in setup()
140 tst_brkm(TBROK | TERRNO, cleanup, "lseek failed"); in setup()
144 tst_brkm(TBROK | TERRNO, cleanup, "write failed"); in setup()
150 tst_resm(TBROK | TERRNO, "munmap failed"); in cleanup()
154 tst_resm(TWARN | TERRNO, "close failed"); in cleanup()
Dmsync01.c106 tst_resm(TFAIL | TERRNO, "msync failed"); in main()
111 tst_brkm(TBROK | TERRNO, cleanup, in main()
163 tst_brkm(TBROK | TERRNO, NULL, "getpagesize failed"); in setup()
168 tst_brkm(TBROK | TERRNO, cleanup, "open failed"); in setup()
173 tst_brkm(TBROK | TERRNO, cleanup, "write failed"); in setup()
187 tst_brkm(TBROK | TERRNO, cleanup, "mmap failed"); in setup()
196 tst_resm(TBROK | TERRNO, "munmap failed"); in cleanup()
199 tst_resm(TWARN | TERRNO, "close failed"); in cleanup()
/third_party/ltp/testcases/kernel/syscalls/setns/
Dsetns02.c70 tst_resm(TFAIL|TERRNO, CP"uname"); in do_child_newuts()
75 tst_resm(TFAIL|TERRNO, CP"sethostname"); in do_child_newuts()
77 tst_resm(TFAIL|TERRNO, CP"uname"); in do_child_newuts()
89 tst_resm(TFAIL|TERRNO, CP"setns"); in do_child_newuts()
93 tst_resm(TFAIL|TERRNO, CP"uname"); in do_child_newuts()
112 tst_resm(TPASS|TERRNO, CP"shmat failed as expected"); in do_child_newipc()
121 tst_resm(TFAIL|TERRNO, CP"setns"); in do_child_newipc()
127 tst_resm(TFAIL|TERRNO, CP"shmat failed after setns"); in do_child_newipc()
151 tst_brkm(TBROK|TERRNO, cleanup, "ltp_clone"); in test_flag()
201 tst_brkm(TBROK|TERRNO, NULL, "getcwd"); in setup()
[all …]
/third_party/ltp/testcases/kernel/syscalls/mount/
Dmount03.c147 tst_resm(TWARN | TERRNO, in test_rwflag()
165 tst_resm(TWARN | TERRNO, in test_rwflag()
172 tst_resm(TWARN | TERRNO, "mknod(2) failed to create %s", in test_rwflag()
183 tst_resm(TWARN | TERRNO, "opening %s failed", file); in test_rwflag()
203 tst_resm(TWARN | TERRNO, in test_rwflag()
212 tst_resm(TWARN | TERRNO, "writing to %s failed", file); in test_rwflag()
237 tst_resm(TWARN | TERRNO, "read() Fails on %s", file); in test_rwflag()
269 tst_resm(TBROK | TERRNO, "fork failed"); in test_rwflag()
274 tst_resm(TWARN | TERRNO, in test_rwflag()
295 tst_resm(TWARN | TERRNO, "opening %s failed", file); in test_rwflag()
[all …]
/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/
Dhugemmap02.c75 tst_brk(TBROK | TERRNO, "no empty region to use"); in test_hugemmap()
81 tst_brk(TBROK | TERRNO, "mmap failed on nfildes"); in test_hugemmap()
87 tst_brk(TBROK | TERRNO, "no empty region to use"); in test_hugemmap()
94 tst_res(TFAIL | TERRNO, "huge mmap failed unexpectedly" in test_hugemmap()
101 tst_res(TFAIL | TERRNO, "huge mmap failed unexpectedly" in test_hugemmap()
112 tst_res(TFAIL | TERRNO, in test_hugemmap()
117 tst_res(TFAIL | TERRNO, "huge munmap failed"); in test_hugemmap()
119 tst_res(TFAIL | TERRNO, "munmap failed"); in test_hugemmap()
/third_party/ltp/testcases/kernel/syscalls/kill/
Dkill02.c245 tst_brkm(TBROK | TERRNO, cleanup, in main()
259 tst_brkm(TBROK | TERRNO, cleanup, in main()
272 tst_brkm(TBROK | TERRNO, cleanup, in main()
282 tst_brkm(TBROK | TERRNO, cleanup, "fork failed"); in main()
352 tst_brkm(TBROK | TERRNO, NULL, "kill() failed"); in parent_rout()
385 tst_brkm(TBROK | TERRNO, NULL, "read() failed"); in parent_rout()
463 tst_brkm(TBROK | TERRNO, NULL, in child1_rout()
480 tst_brkm(TBROK | TERRNO, NULL, "fork failed"); in child1_rout()
490 tst_brkm(TBROK | TERRNO, NULL, "self_exec() failed"); in child1_rout()
504 tst_brkm(TBROK | TERRNO, NULL, "fork failed"); in child1_rout()
[all …]
/third_party/ltp/testcases/kernel/syscalls/pivot_root/
Dpivot_root01.c83 tst_brk(TBROK | TERRNO, "cap_get_proc failed"); in drop_cap_sys_admin()
86 tst_brk(TBROK | TERRNO, "cap_set_flag failed"); in drop_cap_sys_admin()
89 tst_brk(TBROK | TERRNO, "cap_set_proc failed"); in drop_cap_sys_admin()
104 tst_brk(TFAIL | TERRNO, "unshare failed"); in run()
156 tst_res(TFAIL | TERRNO, "pivot_root failed"); in run()
169 tst_res(TFAIL | TERRNO, "pivot_root failed with wrong errno"); in run()
173 tst_res(TPASS | TERRNO, "pivot_root failed as expectedly"); in run()

12345678910>>...25