/third_party/ltp/testcases/kernel/pty/ |
D | ptem01.c | 63 tst_brkm(TBROK | TERRNO, NULL, "ptsname() call failed"); in test1() 67 tst_brkm(TBROK | TERRNO, NULL, "grantpt() call failed"); in test1() 71 tst_brkm(TBROK, NULL, "unlockpt() call failed"); in test1() 75 tst_brkm(TFAIL, NULL, "Could not open %s", slavename); in test1() 79 tst_brkm(TFAIL, NULL, "TCGETS"); in test1() 83 tst_brkm(TFAIL, NULL, "TCSETS"); in test1() 87 tst_brkm(TFAIL, NULL, "TCSETSW"); in test1() 91 tst_brkm(TFAIL, NULL, "TCSETSF"); in test1() 95 tst_brkm(TFAIL, NULL, "TCSETS"); in test1() 99 tst_brkm(TFAIL, NULL, "TCGETA"); in test1() [all …]
|
D | pty01.c | 83 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() 94 tst_brkm(TBROK, NULL, "uid mismatch"); in test1() 100 tst_brkm(TBROK, NULL, "mode mismatch (mode=%o)", st.st_mode); in test1() 106 tst_brkm(TBROK, NULL, "open didn't fail as expected!"); 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() 131 tst_brkm(TFAIL, NULL, in test1() [all …]
|
/third_party/ltp/utils/sctp/func_tests/ |
D | test_1_to_1_sockopt.c | 106 tst_brkm(TCONF, tst_exit, "sctp driver not available"); in main() 121 tst_brkm(TBROK, tst_exit, "setsockopt with a bad socket " in main() 130 tst_brkm(TBROK, tst_exit, "Failed to mkstemp %s: %s", in main() 138 tst_brkm(TBROK, tst_exit, "setsockopt with an invalid socket " in main() 146 tst_brkm(TBROK, tst_exit, "setsockopt with invalid level " in main() 155 tst_brkm(TBROK, tst_exit, "setsockopt with invalid option " in main() 163 tst_brkm(TBROK, tst_exit, "setsockopt with invalid option " in main() 171 tst_brkm(TBROK, tst_exit, "getsockopt with a bad socket " in main() 180 tst_brkm(TBROK, tst_exit, "Failed to mkstemp %s: %s", in main() 188 tst_brkm(TBROK, tst_exit, "getsockopt with an invalid socket " in main() [all …]
|
D | test_getname.c | 74 tst_brkm(TCONF, tst_exit, "sctp driver not available"); in main() 103 tst_brkm(TBROK, tst_exit, "getsockname: %s", strerror(errno)); in main() 112 tst_brkm(TBROK, tst_exit, "getpeername on an unconnected " in main() 136 tst_brkm(TBROK, tst_exit, "getsockname on a connected client " in main() 146 tst_brkm(TBROK, tst_exit, "getpeername on a connected client " in main() 161 tst_brkm(TBROK, tst_exit, "getsockname on a connected server " in main() 172 tst_brkm(TBROK, tst_exit, "getpeername on a connected server " in main() 178 tst_brkm(TBROK, tst_exit, "Server's local port(%d) doesn't " in main() 183 tst_brkm(TBROK, tst_exit, "Server's peer port(%d) doesn't " in main() 188 tst_brkm(TBROK, tst_exit, "Server's local address and client's " in main() [all …]
|
D | test_1_to_1_socket_bind_listen.c | 95 tst_brkm(TCONF, tst_exit, "sctp driver not available"); in main() 108 tst_brkm(TBROK, tst_exit, "socket() with invalid domain " in main() 116 tst_brkm(TBROK, tst_exit, "socket() with invalid type " in main() 124 tst_brkm(TBROK, tst_exit, "valid socket() call " in main() 132 tst_brkm(TBROK, tst_exit, "bind() with invalid address ptr " in main() 144 tst_brkm(TBROK, tst_exit, "bind() with invalid address length " in main() 153 tst_brkm(TBROK, tst_exit, "Failed to mkstemp %s: %s", in main() 161 tst_brkm(TBROK, tst_exit, "bind() with invalid socket " in main() 171 tst_brkm(TBROK, tst_exit, "bind() with invalid local " in main() 184 tst_brkm(TBROK, tst_exit, "bind() on an already bound socket " in main() [all …]
|
D | test_1_to_1_shutdown.c | 78 tst_brkm(TCONF, tst_exit, "sctp driver not available"); in main() 115 tst_brkm(TBROK, tst_exit, "shutdown with a bad socket " in main() 124 tst_brkm(TBROK, tst_exit, "Failed to mkstemp %s: %s", in main() 132 tst_brkm(TBROK, tst_exit, "shutdown with an invalid socket " in main() 144 tst_brkm(TBROK, tst_exit, "shutdown with SHUT_WR flag " in main() 152 tst_brkm(TBROK, tst_exit, "recv on a SHUTDOWN received socket " in main() 163 tst_brkm(TBROK, tst_exit, "recv on a SHUT_WR socket with no " in main() 175 tst_brkm(TBROK, tst_exit, "recv on a SHUT_RD socket " in main() 181 tst_brkm(TBROK, tst_exit, "send on a SHUT_RD socket " in main() 193 tst_brkm(TBROK, tst_exit, "recv on a SHUT_RD socket " in main() [all …]
|
D | test_1_to_1_addrs.c | 103 tst_brkm(TCONF, tst_exit, "sctp driver not available"); in main() 178 tst_brkm(TBROK, tst_exit, "sctp_getladdrs with a bad socket " in main() 188 tst_brkm(TBROK, tst_exit, "Failed to mkstemp %s: %s", in main() 196 tst_brkm(TBROK, tst_exit, "sctp_getladdrs with invalid socket " in main() 206 tst_brkm(TBROK, tst_exit, "sctp_getladdrs with socket of " in main() 215 tst_brkm(TBROK, tst_exit, "sctp_getladdrs with valid socket " in main() 222 tst_brkm(TBROK, tst_exit, "sctp_getladdrs comparision failed"); in main() 228 tst_brkm(TBROK, tst_exit, "sctp_freeladdrs " in main() 236 tst_brkm(TBROK, tst_exit, "sctp_getpaddrs with a bad socket " in main() 246 tst_brkm(TBROK, tst_exit, "Failed to mkstemp %s: %s", in main() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl31.c | 114 tst_brkm(TBROK | TERRNO, cleanup, "fcntl set O_ASYNC failed"); in setup() 122 tst_brkm(TBROK | TERRNO, cleanup, "setpgrp() failed"); in setup() 126 tst_brkm(TBROK | TERRNO, cleanup, "getpgid() failed"); in setup() 135 tst_brkm(TFAIL | TTERRNO, cleanup, in setup() 144 tst_brkm(TFAIL | TTERRNO, cleanup, in setup() 154 tst_brkm(TBROK | TERRNO, cleanup, "sigprocmask failed"); in setup() 164 tst_brkm(TFAIL | TTERRNO, cleanup, in setown_pid_test() 171 tst_brkm(TFAIL | TTERRNO, cleanup, in setown_pid_test() 180 tst_brkm(TFAIL | TTERRNO, cleanup, in setown_pgrp_test() 188 tst_brkm(TFAIL | TTERRNO, cleanup, in setown_pgrp_test() [all …]
|
/third_party/ltp/testcases/kernel/security/securebits/ |
D | check_keepcaps.c | 48 tst_brkm(TBROK | TERRNO, NULL, in eff_caps_empty() 79 tst_brkm(TERRNO | TFAIL, NULL, "setuid failed"); in do_setuid() 87 tst_brkm(TFAIL, NULL, "expected to keep privs but did not"); in do_setuid() 95 tst_brkm(TFAIL, NULL, "expected to drop privs but did not"); in do_setuid() 106 tst_brkm(TBROK, NULL, "keepcaps was already set?"); in main() 109 tst_brkm(TBROK, NULL, "Usage: %s <tescase_num>", argv[0]); in main() 113 tst_brkm(TFAIL, NULL, "Valid tests are 1-3"); in main() 121 tst_brkm(TFAIL | TERRNO, NULL, in main() 126 tst_brkm(TFAIL | TERRNO, NULL, in main() 134 tst_brkm(TFAIL | TERRNO, NULL, in main() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/mkdir/ |
D | mkdir09.c | 116 tst_brkm(TFAIL, cleanup, in main() 122 tst_brkm(TFAIL, cleanup, in main() 145 tst_brkm(TFAIL, cleanup, in runtest() 151 tst_brkm(TFAIL, cleanup, in runtest() 164 tst_brkm(TWARN, NULL, in runtest() 195 tst_brkm(TFAIL, cleanup, in runtest() 199 tst_brkm(TFAIL, cleanup, in runtest() 217 tst_brkm(TWARN, in runtest() 237 tst_brkm(TWARN, NULL, "\tSaw %d, expected %d", count, in runtest() 244 tst_brkm(TWARN, NULL, "\tCore file found in test directory."); in runtest() [all …]
|
/third_party/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() 301 tst_brkm(TBROK, NULL, in parent_rout() 327 tst_brkm(TBROK, NULL, in parent_rout() 352 tst_brkm(TBROK | TTERRNO, NULL, "kill() failed"); in parent_rout() 385 tst_brkm(TBROK | TERRNO, NULL, "read() failed"); in parent_rout() 447 tst_brkm(TBROK, NULL, in child1_rout() 463 tst_brkm(TBROK | TERRNO, NULL, in child1_rout() [all …]
|
/third_party/ltp/utils/sctp/testlib/ |
D | sctputil.h | 116 #define tst_brkm(a1, a2, whatever...) \ macro 137 tst_brkm(TBROK, tst_exit, "socket: %s", strerror(errno)); in test_socket() 145 tst_brkm(TBROK, tst_exit, "bind: %s", strerror(errno)); in test_bind() 153 tst_brkm(TBROK, tst_exit, "bindx (add): %s", strerror(errno)); in test_bindx_add() 161 tst_brkm(TBROK, tst_exit, "listen: %s", strerror(errno)); in test_listen() 169 tst_brkm(TBROK, tst_exit, "connect: %s", strerror(errno)); in test_connect() 177 tst_brkm(TBROK, tst_exit, "connectx: %s", strerror(errno)); in test_connectx() 185 tst_brkm(TBROK, tst_exit, "accept: %s", strerror(errno)); in test_accept() 193 tst_brkm(TBROK, tst_exit, "send: error:%d errno:%d", error, errno); in test_send() 202 tst_brkm(TBROK, tst_exit, "sendto: error:%d errno:%d", error, errno); in test_sendto() [all …]
|
/third_party/ltp/lib/ |
D | tst_cmd.c | 56 tst_brkm(TBROK, cleanup_fn, in tst_cmd_fds_() 75 tst_brkm(TCONF, cleanup_fn, "Couldn't find '%s' in $PATH at %s:%d", argv[0], in tst_cmd_fds_() 83 tst_brkm(TBROK | TERRNO, cleanup_fn, "vfork failed at %s:%d", in tst_cmd_fds_() 105 tst_brkm(TBROK | TERRNO, cleanup_fn, "waitpid failed at %s:%d", in tst_cmd_fds_() 113 tst_brkm(TBROK, cleanup_fn, "failed to exec cmd '%s' at %s:%d", in tst_cmd_fds_() 121 tst_brkm(TBROK, cleanup_fn, in tst_cmd_fds_() 257 tst_brkm(TCONF, NULL, "Couldn't find '%s' in $PATH", cmd_token); in tst_check_cmd() 275 tst_brkm(TCONF, NULL, "Invalid op(%s)", op_token); in tst_check_cmd() 278 tst_brkm(TCONF, NULL, in tst_check_cmd() 291 tst_brkm(TBROK, NULL, "No version parser for %s implemented!", in tst_check_cmd() [all …]
|
/third_party/ltp/testcases/kernel/controllers/cpuset/ |
D | cpuset_funcs.sh | 85 tst_brkm TCONF "kernel is below 2.6.28" 92 tst_brkm TCONF "The total of CPUs is less than $1" 98 tst_brkm TCONF "CPUs are not numbered continuously starting at 0 ($cpu_string)" 105 tst_brkm TCONF "The total of nodes is less than $1" 111 tst_brkm TCONF "Nodes are not numbered continuously starting at 0 ($mem_string)" 118 tst_brkm TCONF "Test must be run as root" 134 tst_brkm TCONF "Cpuset is not supported" 140 tst_brkm TCONF "Microsoft Hyper-V detected, no support for CPU hotplug" 169 cleanup || tst_brkm TFAIL "Can't cleanup... Exiting" 177 tst_brkm TFAIL "Could not mount cgroup filesystem with"\ [all …]
|
/third_party/ltp/testcases/kernel/syscalls/mmap/ |
D | mmap10.c | 96 tst_brkm(TCONF, NULL, in main() 101 tst_brkm(TCONF, NULL, "MADV_MERGEABLE missing in sys/mman.h"); in main() 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() [all …]
|
D | mmap03.c | 103 tst_brkm(TFAIL | TERRNO, cleanup, in main() 139 tst_brkm(TFAIL | TERRNO, cleanup, in main() 162 tst_brkm(TFAIL, NULL, "calloc failed (tst_buff)"); in setup() 173 tst_brkm(TFAIL | TERRNO, cleanup, "opening %s failed", in setup() 180 tst_brkm(TFAIL | TERRNO, cleanup, "writing to %s failed", in setup() 189 tst_brkm(TFAIL, cleanup, "fchmod of %s failed", TEMPFILE); in setup() 194 tst_brkm(TFAIL | TERRNO, cleanup, "closing %s failed", in setup() 200 tst_brkm(TFAIL, cleanup, "calloc failed (dummy)"); in setup() 205 tst_brkm(TFAIL | TERRNO, cleanup, in setup() 222 tst_brkm(TBROK, cleanup, "received an unexpected signal"); in sig_handler()
|
D | mmap04.c | 96 tst_brkm(TFAIL, cleanup, "reading %s failed", in main() 116 tst_brkm(TFAIL, cleanup, "munmapping failed"); in main() 135 tst_brkm(TFAIL, NULL, "calloc failed (tst_buff)"); in setup() 146 tst_brkm(TFAIL, cleanup, "opening %s failed", TEMPFILE); in setup() 152 tst_brkm(TFAIL, cleanup, "writing to %s failed", TEMPFILE); in setup() 160 tst_brkm(TFAIL, cleanup, "fchmod of %s failed", TEMPFILE); in setup() 165 tst_brkm(TFAIL, cleanup, "closing %s failed", TEMPFILE); in setup() 170 tst_brkm(TFAIL, cleanup, "calloc failed (dummy)"); in setup() 175 tst_brkm(TFAIL, cleanup, in setup()
|
D | mmap02.c | 92 tst_brkm(TFAIL | TERRNO, cleanup, in main() 111 tst_brkm(TFAIL | TERRNO, cleanup, "munmapping failed"); in main() 131 tst_brkm(TFAIL, NULL, "calloc failed (tst_buff)"); in setup() 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() 170 tst_brkm(TFAIL, cleanup, "reopening %s readonly failed", in setup() 176 tst_brkm(TFAIL, cleanup, "calloc failed (dummy)"); in setup()
|
/third_party/ltp/testcases/lib/ |
D | test.sh | 42 *) tst_brkm TBROK "Invalid resm type '$1'";; 70 tst_brkm() function 76 *) tst_brkm TBROK "Invalid tst_brkm type '$1'";; 88 tst_brkm TBROK "Requires child pid as parameter" 97 tst_brkm TBROK "Child process pid='$child_pid' does not exist" 105 tst_brkm TCONF "Must be super/root for this test!" 159 tst_brkm TCONF "'$cmd' not found" 241 tst_brkm TBROK "$@ failed" 281 tst_brkm TBROK "$@ failed" 314 tst_brkm TBROK "No fs_type specified" [all …]
|
/third_party/ltp/testcases/kernel/syscalls/rt_sigprocmask/ |
D | rt_sigprocmask01.c | 93 tst_brkm(TFAIL | TERRNO, cleanup, in main() 97 tst_brkm(TFAIL | TERRNO, cleanup, in main() 104 tst_brkm(TFAIL | TTERRNO, cleanup, in main() 111 tst_brkm(TFAIL | TTERRNO, cleanup, in main() 117 tst_brkm(TFAIL | TERRNO, cleanup, in main() 121 tst_brkm(TFAIL | TERRNO, cleanup, in main() 129 tst_brkm(TFAIL | TTERRNO, cleanup, in main() 134 tst_brkm(TFAIL | TTERRNO, in main() 144 tst_brkm(TFAIL | TTERRNO, in main() 154 tst_brkm(TFAIL | TERRNO, in main()
|
/third_party/ltp/testcases/kernel/fs/ftest/ |
D | ftest03.c | 142 tst_brkm(TBROK | TERRNO, NULL, "getcwd() failed"); in setup() 166 tst_brkm(TBROK, NULL, " sigset failed: signo = 15"); in setup() 193 tst_brkm(TBROK | TERRNO, NULL, "fork failed"); in runtest() 235 tst_brkm(TBROK | TERRNO, sync, "fork failed"); in runtest() 297 tst_brkm(TBROK, NULL, "\tmalloc failed"); in dotest() 301 tst_brkm(TBROK, NULL, "\tmalloc failed"); in dotest() 312 tst_brkm(TBROK, NULL, "\tmalloc failed"); in dotest() 321 tst_brkm(TBROK, NULL, "\tmalloc failed"); in dotest() 325 tst_brkm(TBROK, NULL, "\tmalloc failed"); in dotest() 331 tst_brkm(TBROK, NULL, "\tmalloc failed"); in dotest() [all …]
|
D | ftest08.c | 142 tst_brkm(TBROK | TERRNO, NULL, "first sigset failed"); in init() 158 tst_brkm(TFAIL, in runtest() 170 tst_brkm(TBROK | TERRNO, NULL, "fork failed"); in runtest() 244 tst_brkm(TBROK, NULL, "\tmalloc failed(bits)"); in dotest() 255 tst_brkm(TBROK, NULL, "\tmalloc failed(iov_base)"); in dotest() 263 tst_brkm(TBROK, NULL, "\tmalloc failed((i+1)*8)"); in dotest() 267 tst_brkm(TBROK, NULL, "\tmalloc failed(val0_iovec)"); in dotest() 273 tst_brkm(TBROK, NULL, "\tmalloc failed((i+1)*8)"); in dotest() 277 tst_brkm(TBROK, NULL, "\tmalloc failed(iov_base)"); in dotest() 282 tst_brkm(TBROK, NULL, "\tmalloc failed(((i+1)*8)"); in dotest() [all …]
|
D | ftest07.c | 145 tst_brkm(TBROK, NULL, "Failed to get corrent directory"); in setup() 169 tst_brkm(TBROK | TERRNO, NULL, "sigset (signo=SIGTERM) failed"); in setup() 195 tst_brkm(TBROK | TERRNO, NULL, "fork failed"); in runtest() 236 tst_brkm(TBROK | TERRNO, NULL, "fork failed"); in runtest() 298 tst_brkm(TBROK, NULL, "\tmalloc failed(bits)"); in dotest() 301 tst_brkm(TBROK, NULL, "\tmalloc failed(hlod_bits)"); in dotest() 314 tst_brkm(TFAIL, NULL, in dotest() 324 tst_brkm(TBROK, NULL, "\tmalloc failed((i+1)*8)"); in dotest() 333 tst_brkm(TBROK, NULL, "\tmalloc failed((i+1)*8)"); in dotest() 336 tst_brkm(TBROK, NULL, "\tmalloc failed(zero_iover)"); in dotest() [all …]
|
D | ftest04.c | 137 tst_brkm(TFAIL, NULL, "first sigset failed"); in setup() 157 tst_brkm(TBROK | TERRNO, NULL, "fork failed"); in runtest() 231 tst_brkm(TBROK, NULL, "\tmalloc failed(bits)"); in dotest() 244 tst_brkm(TBROK, NULL, "\tmalloc failed(r_iovec[])"); in dotest() 252 tst_brkm(TBROK, NULL, "\tmalloc failed"); in dotest() 256 tst_brkm(TBROK, NULL, "\tmalloc failed(val0_iovec[])"); in dotest() 262 tst_brkm(TBROK, NULL, "\tmalloc failed"); in dotest() 266 tst_brkm(TBROK, NULL, "\tmalloc failed(iov_base)"); in dotest() 272 tst_brkm(TBROK, NULL, "\tmalloc failed"); in dotest() 321 tst_brkm(TFAIL, in dotest() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/mremap/ |
D | mremap01.c | 117 tst_brkm(TFAIL | TERRNO, cleanup, "mremap failed"); in main() 166 tst_brkm(TFAIL, NULL, in setup() 180 tst_brkm(TBROK | TERRNO, cleanup, "opening %s failed", in setup() 185 tst_brkm(TBROK | TERRNO, cleanup, in setup() 191 tst_brkm(TBROK, cleanup, "writing to %s failed", TEMPFILE); in setup() 202 tst_brkm(TBROK, cleanup, "mmaping Failed on %s", TEMPFILE); in setup() 207 tst_brkm(TBROK, cleanup, "lseek() to %d offset pos. Failed, " in setup() 213 tst_brkm(TBROK | TERRNO, cleanup, "writing to %s failed", in setup() 231 tst_brkm(TBROK | TERRNO, NULL, "munmap failed"); in cleanup()
|