/external/ltp/lib/ |
D | safe_macros.c | 28 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_basename() 44 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_chdir() 60 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_close() 76 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_creat() 91 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_dirname() 106 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_getcwd() 121 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_getpwnam() 137 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_getrusage() 152 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_malloc() 167 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_mkdir() [all …]
|
D | tst_safe_macros.c | 36 tst_brk(TBROK | TERRNO, in safe_setpgid() 50 tst_brk(TBROK | TERRNO, in safe_getpgid() 70 tst_brk(TBROK | TERRNO, in safe_fanotify_init() 86 tst_brk_(filename, lineno, TBROK | TERRNO, in safe_personality() 100 tst_brk_(file, lineno, TBROK | TERRNO, in safe_setregid() 116 tst_brk_(file, lineno, TBROK | TERRNO, in safe_setreuid() 134 tst_brk_(file, lineno, TBROK | TERRNO, in safe_sigaction() 150 tst_brk_(file, lineno, TBROK | TERRNO, in safe_getgrnam() 181 tst_brk_(file, lineno, TBROK | TERRNO, in safe_getgrgid() 194 tst_brk_(file, lineno, TBROK | TERRNO, in safe_chroot()
|
D | tst_device.c | 95 tst_resm(TINFO | TERRNO, in find_free_loopdev() 100 tst_resm(TBROK | TERRNO, "Failed to open " LOOP_CONTROL_FILE); in find_free_loopdev() 142 tst_resm(TWARN | TERRNO, "open('%s', O_RDWR) failed", dev); in attach_device() 148 tst_resm(TWARN | TERRNO, "open('%s', O_RDWR) failed", file); in attach_device() 156 tst_resm(TWARN | TERRNO, "ioctl(%s, LOOP_SET_FD, %s) failed", in attach_device() 171 tst_resm(TWARN | TERRNO, in attach_device() 187 tst_resm(TWARN | TERRNO, "open(%s) failed", dev); in detach_device() 234 tst_resm(TWARN | TERRNO, "stat() failed"); in tst_acquire_device__() 245 tst_resm(TWARN | TERRNO, in tst_acquire_device__() 251 tst_resm(TWARN | TERRNO, in tst_acquire_device__() [all …]
|
D | tst_safe_sysv_ipc.c | 50 tst_brk(TBROK | TERRNO, "%s:%d: msgget(%i, %x) failed", in safe_msgget() 64 tst_brk(TBROK | TERRNO, in safe_msgsnd() 79 tst_brk(TBROK | TERRNO, in safe_msgrcv() 94 tst_brk(TBROK | TERRNO, in safe_msgctl() 110 tst_brk(TBROK | TERRNO, "%s:%d: shmget(%i, %zu, %x) failed", in safe_shmget() 124 tst_brk(TBROK | TERRNO, "%s:%d: shmat(%i, %p, %x) failed", in safe_shmat() 137 tst_brk(TBROK | TERRNO, "%s:%d: shmdt(%p) failed", in safe_shmdt() 151 tst_brk(TBROK | TERRNO, in safe_shmctl()
|
/external/ltp/testcases/kernel/syscalls/open/ |
D | open10.c | 128 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 …]
|
/external/ltp/testcases/kernel/pty/ |
D | pty01.c | 86 tst_brkm(TBROK | TERRNO, NULL, "ptsname() call failed"); in test1() 90 tst_brkm(TBROK | TERRNO, NULL, "grantpt() call failed"); in test1() 94 tst_brkm(TBROK | TERRNO, NULL, "stat(%s) failed", slavename); in test1() 113 tst_brkm(TBROK | TERRNO, NULL, "unlockpt() failed"); in test1() 126 tst_brkm(TFAIL | TERRNO, NULL, "write to master"); in test1() 131 tst_brkm(TFAIL | TERRNO, NULL, "read from slave"); in test1() 144 tst_brkm(TFAIL | TERRNO, NULL, "write to slave"); in test1() 149 tst_brkm(TFAIL | TERRNO, NULL, "read from master"); in test1() 179 tst_brkm(TBROK | TERRNO, NULL, "close of slave"); in test1() 182 tst_brkm(TBROK | TERRNO, NULL, "close of master"); in test1() [all …]
|
/external/ltp/testcases/kernel/device-drivers/rtc/ |
D | rtc01.c | 73 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 …]
|
/external/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl11.c | 110 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 …]
|
D | fcntl01.c | 66 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()
|
/external/ltp/testcases/kernel/syscalls/eventfd/ |
D | eventfd01.c | 93 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 …]
|
/external/ltp/testcases/kernel/syscalls/epoll_pwait/ |
D | epoll_pwait01.c | 87 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 …]
|
/external/ltp/testcases/kernel/syscalls/perf_event_open/ |
D | perf_event_open02.c | 165 tst_brkm(TCONF | TERRNO, cleanup, in count_hardware_counters() 168 tst_brkm(TBROK | TERRNO, cleanup, in count_hardware_counters() 173 tst_brkm(TBROK | TERRNO, cleanup, in count_hardware_counters() 180 tst_brkm(TBROK | TERRNO, cleanup, in count_hardware_counters() 185 tst_brkm(TBROK | TERRNO, cleanup, in count_hardware_counters() 254 tst_brkm(TBROK | TERRNO, cleanup, "perf_event_open failed"); in setup() 262 tst_brkm(TBROK | TERRNO, cleanup, in setup() 275 tst_resm(TWARN | TERRNO, "close(%d) failed", hwfd[i]); in cleanup() 277 tst_resm(TWARN | TERRNO, "close(%d) failed", tskfd[i]); in cleanup() 281 tst_resm(TWARN | TERRNO, "close(%d) failed", tsk0); in cleanup() [all …]
|
/external/ltp/testcases/kernel/syscalls/clone/ |
D | clone02.c | 153 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 …]
|
D | clone06.c | 66 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()
|
/external/ltp/testcases/kernel/syscalls/mmap/ |
D | mmap10.c | 130 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 …]
|
D | mmap02.c | 83 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()
|
/external/ltp/testcases/kernel/syscalls/writev/ |
D | writev02.c | 115 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 …]
|
/external/ltp/testcases/kernel/syscalls/msync/ |
D | msync02.c | 117 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()
|
D | msync01.c | 106 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()
|
/external/ltp/testcases/kernel/syscalls/setns/ |
D | setns02.c | 70 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 …]
|
/external/ltp/testcases/kernel/syscalls/mount/ |
D | mount03.c | 147 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 …]
|
/external/ltp/testcases/kernel/syscalls/kill/ |
D | kill02.c | 245 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 …]
|
/external/ltp/testcases/kernel/syscalls/fallocate/ |
D | fallocate05.c | 46 tst_res(TCONF | TERRNO, "fallocate() not supported"); in run() 51 tst_brk(TBROK | TERRNO, in run() 60 tst_res(TFAIL | TERRNO, "write() failed unexpectedly"); in run() 69 tst_brk(TFAIL | TERRNO, "fallocate() should fail with ENOSPC"); in run() 71 tst_res(TPASS | TERRNO, "fallocate() on full FS"); in run() 78 tst_brk(TBROK | TERRNO, TESTED_FLAGS); in run() 84 tst_res(TFAIL | TERRNO, "write()"); in run()
|
/external/ltp/testcases/kernel/mem/hugetlb/hugemmap/ |
D | hugemmap02.c | 86 tst_brk(TBROK | TERRNO, "no empty region to use"); in test_hugemmap() 92 tst_brk(TBROK | TERRNO, "mmap failed on nfildes"); in test_hugemmap() 98 tst_brk(TBROK | TERRNO, "no empty region to use"); in test_hugemmap() 105 tst_res(TFAIL | TERRNO, "huge mmap failed unexpectedly" in test_hugemmap() 112 tst_res(TFAIL | TERRNO, "huge mmap failed unexpectedly" in test_hugemmap() 123 tst_res(TFAIL | TERRNO, in test_hugemmap() 128 tst_res(TFAIL | TERRNO, "huge munmap failed"); in test_hugemmap() 130 tst_res(TFAIL | TERRNO, "munmap failed"); in test_hugemmap()
|
/external/ltp/testcases/kernel/syscalls/move_pages/ |
D | move_pages03.c | 98 tst_resm(TWARN | TERRNO, "error post semaphore"); in child() 102 tst_resm(TWARN | TERRNO, "error wait semaphore"); in child() 123 tst_brkm(TBROK | TERRNO, cleanup, "get_allowed_nodes: %d", ret); in main() 155 tst_resm(TBROK | TERRNO, "forking child failed"); in main() 163 tst_resm(TWARN | TERRNO, "error wait semaphore"); in main() 168 tst_resm(TFAIL|TERRNO, "move_pages failed"); in main() 179 tst_resm(TWARN | TERRNO, "error post semaphore"); in main()
|