/third_party/ltp/testcases/kernel/syscalls/ipc/semctl/ |
D | semctl07.c | 44 tst_res(TPASS, "sem_nsems = %lu", arg.buf->sem_nsems); in verify_semctl() 51 tst_res(TPASS, "sem_perm.uid = %d", arg.buf->sem_perm.uid); in verify_semctl() 58 tst_res(TPASS, "sem_perm.gid = %d", arg.buf->sem_perm.gid); in verify_semctl() 65 tst_res(TPASS, "sem_perm.cuid = %d", arg.buf->sem_perm.cuid); in verify_semctl() 72 tst_res(TPASS, "sem_perm.cgid = %d", arg.buf->sem_perm.cgid); in verify_semctl() 78 tst_res(TPASS, "semctl(GETVAL) succeeded"); in verify_semctl() 85 tst_res(TPASS, "semctl(SETVAL) succeeded"); in verify_semctl() 90 tst_res(TPASS, "semctl(GETVAL) succeeded"); in verify_semctl() 96 tst_res(TPASS, "semctl(GETVAL) returned %d", status); in verify_semctl() 102 tst_res(TPASS, "semctl(GETPID) succeeded"); in verify_semctl() [all …]
|
D | semctl01.c | 45 tst_res(TPASS, "buf.sem_nsems and buf.sem_perm.mode are correct"); in func_stat() 60 tst_res(TPASS, "buf.sem_perm.mode is correct"); in func_set() 75 tst_res(TPASS, "semaphores have expected values"); in func_gall() 122 tst_res(TPASS, "number of sleeping processes is correct"); in func_cnt() 155 tst_res(TPASS, "last pid value is correct"); in func_pid() 167 tst_res(TPASS, "semaphore value is correct"); in func_gval() 194 tst_res(TPASS, "semaphore values are correct"); in func_sall() 204 tst_res(TPASS, "semaphore value is correct"); in func_sval() 217 tst_res(TPASS, "the highest index is correct"); in func_iinfo() 229 tst_res(TPASS, "number of semaphore sets is correct"); in func_sinfo() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/ipc/msgctl/ |
D | msgctl01.c | 37 tst_res(TPASS, "msgctl(IPC_STAT)"); in verify_msgctl() 40 tst_res(TPASS, "msg_stime = 0"); in verify_msgctl() 45 tst_res(TPASS, "msg_rtime = 0"); in verify_msgctl() 50 tst_res(TPASS, "msg_ctime = %lu, expected %lu", in verify_msgctl() 58 tst_res(TPASS, "msg_qnum = 0"); in verify_msgctl() 63 tst_res(TPASS, "msg_qbytes = %li", (long)buf.msg_qbytes); in verify_msgctl() 68 tst_res(TPASS, "msg_lspid = 0"); in verify_msgctl() 73 tst_res(TPASS, "msg_lrpid = 0"); in verify_msgctl() 78 tst_res(TPASS, "msg_perm.__key == %u", (unsigned)msgkey); in verify_msgctl() 85 tst_res(TPASS, "msg_perm.uid = %u", (unsigned)uid); in verify_msgctl() [all …]
|
/third_party/ltp/utils/sctp/func_tests/ |
D | test_1_to_1_sockopt.c | 124 tst_resm(TPASS, "setsockopt() with a bad socket descriptor - EBADF"); in main() 141 tst_resm(TPASS, "setsockopt() with an invalid socket - ENOTSOCK"); in main() 149 tst_resm(TPASS, "setsockopt() with an invalid level - ENOPROTOOPT"); in main() 158 tst_resm(TPASS, "setsockopt() with invalid option buffer - EFAULT"); in main() 166 tst_resm(TPASS, "setsockopt() with invalid option name - EOPNOTSUPP"); in main() 174 tst_resm(TPASS, "getsockopt() with a bad socket descriptor - EBADF"); in main() 191 tst_resm(TPASS, "getsockopt() with an invalid socket - ENOTSOCK"); in main() 203 tst_resm(TPASS, "getsockopt() with an invalid level - ENOPROTOOPT"); in main() 214 tst_resm(TPASS, "getsockopt() with invalid option buffer - EFAULT"); in main() 222 tst_resm(TPASS, "getsockopt() with invalid option name - EOPNOTSUPP"); in main() [all …]
|
D | test_1_to_1_socket_bind_listen.c | 111 tst_resm(TPASS, "socket() with invalid domain - EAFNOSUPPORT"); in main() 119 tst_resm(TPASS, "socket() with invalid type - EINVAL"); in main() 127 tst_resm(TPASS, "socket() - SUCCESS"); in main() 135 tst_resm(TPASS, "bind() with invalid address ptr - EFAULT"); in main() 147 tst_resm(TPASS, "bind() with invalid address length - EINVAL"); in main() 164 tst_resm(TPASS, "bind() with invalid socket descriptor - ENOTSOCK"); in main() 174 tst_resm(TPASS, "bind() with invalid local address - EADDRNOTAVAIL"); in main() 187 tst_resm(TPASS, "bind() on an already bound socket - EINVAL"); in main() 206 tst_resm(TPASS, "bind() on reserved port - EACCESS"); in main() 218 tst_resm(TPASS, "bind() with INADDR_ANY address and non-zero port - " in main() [all …]
|
D | test_tcp_style.c | 144 tst_resm(TPASS, "accept on non-listening socket"); in main() 153 tst_resm(TPASS, "connect to non-listening socket"); in main() 159 tst_resm(TPASS, "connect to listening socket"); in main() 169 tst_resm(TPASS, "connect after max backlog"); in main() 187 tst_resm(TPASS, "accept from listening socket"); in main() 195 tst_resm(TPASS, "connect on an established socket"); in main() 208 tst_resm(TPASS, "accept on an established socket"); in main() 218 tst_resm(TPASS, "client sockets -> accepted sockets"); in main() 228 tst_resm(TPASS, "accepted sockets -> client sockets"); in main() 236 tst_resm(TPASS, "send on a listening socket"); in main() [all …]
|
D | test_sockopt.c | 180 tst_resm(TPASS, "getsockopt(SCTP_STATUS) on a socket with no assoc"); in main() 244 tst_resm(TPASS, "getsockopt(SCTP_STATUS)"); in main() 256 tst_resm(TPASS, "getsockopt(SCTP_STATUS) with invalid associd"); in main() 268 tst_resm(TPASS, "getsockopt(SCTP_STATUS) with NULL associd"); in main() 309 tst_resm(TPASS, "getsockopt(SCTP_EVENTS)"); in main() 318 tst_resm(TPASS, "setsockopt(SCTP_EVENTS)"); in main() 359 tst_resm(TPASS, "setsockopt(SCTP_EVENTS) - SCTP_SHUTDOWN_EVENT"); in main() 440 tst_resm(TPASS, "sctp_opt_info(SCTP_STATUS)"); in main() 461 tst_resm(TPASS, "getsockopt(SCTP_INITMSG)"); in main() 470 tst_resm(TPASS, "setsockopt(SCTP_INITMSG)"); in main() [all …]
|
D | test_getname.c | 105 tst_resm(TPASS, "getsockname on an unconnected socket"); in main() 115 tst_resm(TPASS, "getpeername on an unconnected socket"); in main() 139 tst_resm(TPASS, "getsockname on a connected client socket"); in main() 149 tst_resm(TPASS, "getpeername on a connected client socket"); in main() 164 tst_resm(TPASS, "getsockname on a connected server socket"); in main() 175 tst_resm(TPASS, "getpeername on a connected server socket"); in main() 204 tst_resm(TPASS, "getsockname/getpeername server/client match"); in main() 214 tst_resm(TPASS, "getsockname on a bad socket descriptor - EBADF"); in main() 231 tst_resm(TPASS, "getsockname on an invalid socket - ENOTSOCK"); in main() 239 tst_resm(TPASS, "getsockname with invalid buffer - EFAULT"); in main() [all …]
|
D | test_1_to_1_connectx.c | 125 tst_resm(TPASS, "sctp_connectx() with bad socket descriptor - EBADF"); in main() 133 tst_resm(TPASS, "sctp_connectx() with invalid socket - ENOTSOCK"); in main() 143 tst_resm(TPASS, "sctp_connectx() with invalid address - EINVAL"); in main() 151 tst_resm(TPASS, "sctp_connectx() with invalid address length - EINVAL"); in main() 160 tst_resm(TPASS, "sctp_connectx() with invalid address family - EINVAL"); in main() 175 tst_resm(TPASS, "valid blocking sctp_connectx() - SUCCESS"); in main() 185 tst_resm(TPASS, "sctp_connectx() when accept queue is full - ECONNREFUSED"); in main() 198 tst_resm(TPASS, "sctp_connectx() on a listening socket - EISCONN"); in main() 207 tst_resm(TPASS, "sctp_connectx() on an established socket - EISCONN"); in main() 222 tst_resm(TPASS, "sctp_connectx() to re-establish a closed association - " in main()
|
D | test_1_to_1_accept_close.c | 140 tst_resm(TPASS, "accept() with a bad socket descriptor - EBADF"); in main() 157 tst_resm(TPASS, "accept() with invalid socket - ENOTSOCK"); in main() 165 tst_resm(TPASS, "accept() with invalid address - EFAULT"); in main() 175 tst_resm(TPASS, "accept() on a non-listening socket - EINVAL"); in main() 189 tst_resm(TPASS, "accept() on an established socket - %s", in main() 203 tst_resm(TPASS, "accept() a closed association - SUCCESS"); in main() 216 tst_resm(TPASS, "accept() on a listening socket - SUCCESS"); in main() 225 tst_resm(TPASS, "close() with a bad socket descriptor - EBADF"); in main() 233 tst_resm(TPASS, "close() with a valid socket descriptor - SUCCESS"); in main() 241 tst_resm(TPASS, "close() with a closed socket descriptor - EBADF"); in main()
|
D | test_1_to_1_connect.c | 126 tst_resm(TPASS, "connect() with bad socket descriptor - EBADF"); in main() 143 tst_resm(TPASS, "connect() with invalid socket - ENOTSOCK"); in main() 151 tst_resm(TPASS, "connect() with invalid address - EFAULT"); in main() 159 tst_resm(TPASS, "connect() with invalid address length - EINVAL"); in main() 168 tst_resm(TPASS, "connect() with invalid address family - EINVAL"); in main() 183 tst_resm(TPASS, "valid blocking connect() - SUCCESS"); in main() 193 tst_resm(TPASS, "connect() when accept queue is full - ECONNREFUSED"); in main() 206 tst_resm(TPASS, "connect() on a listening socket - EISCONN"); in main() 215 tst_resm(TPASS, "connect() on an established socket - EISCONN"); in main() 230 tst_resm(TPASS, "connect() to re-establish a closed association - " in main()
|
/third_party/ltp/testcases/kernel/syscalls/ipc/msgrcv/ |
D | msgrcv07.c | 68 tst_res(TPASS, "msgrcv(MSG_EXCEPT) succeeded"); in test_msg_except() 71 tst_res(TPASS, "MSG_EXCEPT excepted MSGTYPE2 and got MSGTYPE1"); in test_msg_except() 95 tst_res(TPASS, "msgrcv(MSG_NOERROR) succeeded"); in test_msg_noerror() 98 tst_res(TPASS, "MSG_NOERROR truncated message correctly"); in test_msg_noerror() 134 tst_res(TPASS, "msgrcv(0, MSG_COPY) succeeded"); in test_msg_copy() 137 tst_res(TPASS, "MSG_COPY got MSGTYPE1 data correctly"); in test_msg_copy() 148 tst_res(TPASS, "msgrcv(1, MSG_COPY) succeeded"); in test_msg_copy() 151 tst_res(TPASS, "MSG_COPY got MSGTYPE2 data correctly"); in test_msg_copy() 157 tst_res(TPASS, "Two messages still in queue"); in test_msg_copy() 178 tst_res(TPASS, "msgrcv(zero_msgtyp) succeeded"); in test_zero_msgtyp() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/times/ |
D | times03.c | 89 tst_res(TPASS, "buf1.tms_utime <= 5"); in verify_times() 94 tst_res(TPASS, "buf1.tms_stime <= 5"); in verify_times() 105 tst_res(TPASS, "buf2.tms_utime = %li", buf2.tms_utime); in verify_times() 111 tst_res(TPASS, "buf1.tms_utime (%li) < buf2.tms_utime (%li)", in verify_times() 118 tst_res(TPASS, "buf2.tms_stime = %li", buf2.tms_stime); in verify_times() 124 tst_res(TPASS, "buf1.tms_stime (%li) < buf2.tms_stime (%li)", in verify_times() 131 tst_res(TPASS, "buf2.tms_cutime = 0"); in verify_times() 136 tst_res(TPASS, "buf2.tms_cstime = 0"); in verify_times() 155 tst_res(TPASS, "buf2.tms_utime (%li) <= buf3.tms_utime (%li)", in verify_times() 163 tst_res(TPASS, "buf2.tms_stime (%li) <= buf3.tms_stime (%li)", in verify_times() [all …]
|
/third_party/ltp/lib/newlib_tests/ |
D | test_parse_filesize.c | 21 tst_res(TPASS, "value is %lli", val); in do_test() 31 tst_res(TPASS, "value is %lli", val); in do_test() 40 tst_res(TPASS, "value is %lli", val); in do_test() 49 tst_res(TPASS, "value is %lli", val); in do_test() 59 tst_res(TPASS, "value is %lli", val); in do_test() 68 tst_res(TPASS, "value is %lli", val); in do_test() 77 tst_res(TPASS, "value is %lli", val); in do_test() 85 tst_res(TPASS, "return code %d (%s)", ret, tst_strerrno(ret)); in do_test() 94 tst_res(TPASS, "return code %d (%s)", ret, tst_strerrno(ret)); in do_test() 103 tst_res(TPASS, "return code %d (%s)", ret, tst_strerrno(ret)); in do_test() [all …]
|
D | test_timer.c | 27 tst_res(TPASS, "ns_diff = 0"); in test_diff() 34 tst_res(TPASS, "us_diff = 0"); in test_diff() 41 tst_res(TPASS, "ms_diff = 0"); in test_diff() 54 tst_res(TPASS, "ts1 < ts2"); in test_lt() 63 tst_res(TPASS, "ts1 >= ts2"); in test_lt() 70 tst_res(TPASS, "ts1 >= ts2"); in test_lt() 87 tst_res(TPASS, "sec = %lli, nsec = %lli", sec, nsec); in test_add_sub() 99 tst_res(TPASS, "sec = %lli, nsec = %lli", sec, nsec); in test_add_sub()
|
/third_party/ltp/testcases/kernel/syscalls/statx/ |
D | statx01.c | 78 tst_res(TPASS, in test_mnt_id() 98 tst_res(TPASS, in test_normal_file() 105 tst_res(TPASS, "stx_uid(%u) is correct", buff.stx_uid); in test_normal_file() 111 tst_res(TPASS, "stx_gid(%u) is correct", buff.stx_gid); in test_normal_file() 117 tst_res(TPASS, in test_normal_file() 125 tst_res(TPASS, "stx_mode(%u) is correct", buff.stx_mode); in test_normal_file() 131 tst_res(TPASS, "stx_blocks(%"PRIu64") is valid", in test_normal_file() 138 tst_res(TPASS, "stx_nlink(1) is correct"); in test_normal_file() 156 tst_res(TPASS, in test_device_file() 163 tst_res(TPASS, "stx_rdev_major(%u) is correct", in test_device_file() [all …]
|
D | statx08.c | 43 tst_res(TPASS, in run() 53 tst_res(flag ? TPASS : TFAIL, in run() 56 tst_res(flag ? TFAIL : TPASS, in run() 61 tst_res(flag ? TPASS : TFAIL, in run() 64 tst_res(flag ? TFAIL : TPASS, in run() 69 tst_res(flag ? TPASS : TFAIL, in run() 72 tst_res(flag ? TFAIL : TPASS, in run() 77 tst_res(flag ? TPASS : TFAIL, in run() 80 tst_res(flag ? TFAIL : TPASS, in run()
|
/third_party/ltp/testcases/kernel/controllers/cgroup_fj/ |
D | cgroup_fj_function.sh | 59 tst_resm TPASS "Task attached succesfully" 78 tst_resm TPASS "Successfully moved $start_path/ltp_2 to $start_path/ltp_3" 91 tst_resm TPASS "Failed to move $start_path/ltp_2 over existing $start_path/ltp_1" 110 tst_resm TPASS "Group $start_path/ltp_1 with task $pid cannot be removed" 123 tst_resm TPASS "Dir $start_path/ltp_1 with subdir 'a' cannot be removed" 138 tst_resm TPASS "Subgroup $start_path/ltp_1 cannot be moved to $PWD/ltp" 149 tst_resm TPASS "Tasks file $start_path/ltp_1/tasks cannot be removed" 165 tst_resm TPASS "Cannot write invalid values to $start_path/ltp_1/notify_on_release" 187 tst_resm TPASS "Set $start_path/ltp_1/notify_on_release to $value"
|
/third_party/ltp/testcases/kernel/device-drivers/pci/tpci_kernel/ |
D | ltp_tpci.c | 60 #define TPASS 0 macro 143 return TPASS; in pci_enable() 169 return TPASS; in pci_disable() 202 return TPASS; in test_find_bus() 227 return TPASS; in test_find_class() 253 return TPASS; in test_find_device() 281 return TPASS; in test_find_subsys() 308 return TPASS; in test_scan_bus() 325 return TPASS; in test_slot_scan() 330 return TPASS; in test_slot_scan() [all …]
|
/third_party/ltp/testcases/commands/ar/ |
D | ar01.sh | 34 tst_res TPASS "ar added new file after another (-a)" 53 tst_res TPASS "ar moved file correctly (-ma)" 71 tst_res TPASS "ar added new file before another (-b)" 90 tst_res TPASS "ar moved file correctly (-mb)" 107 tst_res TPASS "ar haven't produced output (-c)" 121 tst_res TPASS "ar haven't produced output (-qc)" 137 tst_res TPASS "ar deleted files correctly (-d)" 156 tst_res TPASS "ar deleted nothing (-d with empty list)" 174 tst_res TPASS "ar added new file before another (-i)" 193 tst_res TPASS "ar moved file correctly (-mi)" [all …]
|
/third_party/ltp/testcases/kernel/controllers/pids/ |
D | pids.sh | 149 tst_res TPASS "fork didn't fail" 170 tst_res TPASS "fork failed as expected" 194 tst_res TPASS "fork worked as expected" 209 tst_res TPASS "all process were attached" 222 tst_res TPASS "didn't manage to set the limit to -1" 238 tst_res TPASS "fork failed as expected" 269 tst_res TPASS "parent cgroup fork failed as expected" 281 tst_res TPASS "child$i cgroup fork failed as expected" 315 tst_res TPASS "fork failed as expected" 344 tst_res TPASS "migrate pid $pid from cgroup1 to cgroup2 as expected" [all …]
|
/third_party/ltp/testcases/kernel/syscalls/memfd_create/ |
D | memfd_create_common.c | 44 tst_res_(filename, lineno, TPASS, in check_fallocate() 65 tst_res_(filename, lineno, TPASS | TERRNO, in check_fallocate_fail() 77 tst_res_(filename, lineno, TPASS, "ftruncate(%d, %ld) succeeded", fd, in check_ftruncate() 92 tst_res_(filename, lineno, TPASS | TERRNO, in check_ftruncate_fail() 147 tst_res_(filename, lineno, TPASS, "memfd_create(%s, %d) succeeded", in check_mfd_new() 168 tst_res_(filename, lineno, TPASS | TERRNO, in check_mfd_fail_new() 179 tst_res_(file, lineno, TPASS, in check_mmap() 198 tst_res_(file, lineno, TPASS | TERRNO, in check_mmap_fail() 207 tst_res_(file, lineno, TPASS, "munmap(%p, %zu) succeeded", p, length); in check_munmap() 219 tst_res_(file, lineno, TPASS, in check_mfd_has_seals() [all …]
|
/third_party/ltp/testcases/commands/nm/ |
D | nm01.sh | 30 tst_res TPASS "Got correct listing" 39 tst_res TPASS "Got correct listing" 54 tst_res TPASS "Got only external symbols with -g" 66 tst_res TPASS "Got an octal symbol values with -f" 75 tst_res TPASS "Got SysV format with -f sysv" 94 tst_res TPASS "Got BSD format with -f bsd" 106 tst_res TPASS "Got undefined symbols with -u" 118 tst_res TPASS "Got index with -s"
|
/third_party/ltp/testcases/commands/tpm-tools/tpmtoken/tpmtoken_import/ |
D | tpmtoken_import_tests.sh | 107 tst_resm TPASS "'tpmtoken_import -n $TCID $TPM_COMBFILE' passed." 125 tst_resm TPASS "'tpmtoken_import -n $TCID $TPM_COMBFILE' passed." 143 tst_resm TPASS "'tpmtoken_import -y -n $TCID $TPM_COMBFILE' passed." 161 tst_resm TPASS "'tpmtoken_import -p -n $TCID $TPM_COMBFILE' passed." 179 tst_resm TPASS "'tpmtoken_import -p -n $TCID $TPM_COMBFILE' passed." 197 tst_resm TPASS "'tpmtoken_import -y -p -n $TCID $TPM_COMBFILE' passed." 215 tst_resm TPASS "'tpmtoken_import -n $TCID $TPM_CERTFILE' passed." 233 tst_resm TPASS "'tpmtoken_import -n $TCID $TPM_KEYFILE' passed." 252 tst_resm TPASS "'tpmtoken_import -t key -n $TCID $TPM_CERTFILE' passed." 271 tst_resm TPASS "'tpmtoken_import -t cert -n $TCID $TPM_KEYFILE' passed."
|
/third_party/ltp/testcases/kernel/syscalls/getpgid/ |
D | getpgid01.c | 80 tst_resm(TPASS, "%s PASSED", TCID); in main() 90 tst_resm(TPASS, "getpgid(0) PASSED"); in main() 101 tst_resm(TPASS, "getpgid(getpid()) PASSED"); in main() 112 tst_resm(TPASS, "getpgid(getppid()) PASSED"); in main() 122 tst_resm(TPASS, "getpgid(%d) PASSED", pgid_0); in main() 128 tst_resm(TPASS, "getpgid(1) PASSED"); in main()
|