/third_party/ltp/testcases/kernel/pty/ |
H A 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(TFAI in test1() [all...] |
H A 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(TFAI in test1() [all...] |
/third_party/ltp/testcases/kernel/syscalls/fcntl/ |
H A D | fcntl31.c | 111 tst_brkm(TBROK | TERRNO, cleanup, "fcntl set O_ASYNC failed"); in setup() 119 tst_brkm(TBROK | TERRNO, cleanup, "setpgrp() failed"); in setup() 123 tst_brkm(TBROK | TERRNO, cleanup, "getpgid() failed"); in setup() 129 tst_brkm(TFAIL | TTERRNO, cleanup, in setup() 137 tst_brkm(TFAIL | TTERRNO, cleanup, in setup() 147 tst_brkm(TBROK | TERRNO, cleanup, "sigprocmask failed"); in setup() 157 tst_brkm(TFAIL | TTERRNO, cleanup, in setown_pid_test() 164 tst_brkm(TFAIL | TTERRNO, cleanup, in setown_pid_test() 173 tst_brkm(TFAIL | TTERRNO, cleanup, in setown_pgrp_test() 181 tst_brkm(TFAI in setown_pgrp_test() [all...] |
/third_party/ltp/utils/sctp/func_tests/ |
H A 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(TBRO in main() [all...] |
H A 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(TBRO in main() [all...] |
H A 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(TBRO in main() [all...] |
H A 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(TBRO in main() [all...] |
H A 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(TBRO in main() [all...] |
/third_party/ltp/lib/ |
H A 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(TBRO in tst_check_cmd() [all...] |
/third_party/ltp/testcases/kernel/security/securebits/ |
H A 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(TFAI in main() [all...] |
/third_party/ltp/testcases/kernel/syscalls/kill/ |
H A 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(TBRO in child1_rout() [all...] |
/third_party/ltp/utils/sctp/testlib/ |
H A D | sctputil.h | 116 #define tst_brkm(a1, a2, whatever...) \ macro 139 tst_brkm(TCONF | TERRNO, tst_exit, "socket(%i, %i, %i) not supported", domain, in test_socket() 142 tst_brkm(TBROK | TERRNO, tst_exit, "socket()"); in test_socket() 153 tst_brkm(TBROK | TERRNO, tst_exit, "bind()"); in test_bind() 163 tst_brkm(TBROK | TERRNO, tst_exit, "sctp_bindx()"); in test_bindx_add() 173 tst_brkm(TBROK | TERRNO, tst_exit, "listen()"); in test_listen() 183 tst_brkm(TBROK | TERRNO, tst_exit, "connect()"); in test_connect() 193 tst_brkm(TBROK | TERRNO, tst_exit, "connectx()"); in test_connectx() 203 tst_brkm(TBROK | TERRNO, tst_exit, "accept()"); in test_accept() 213 tst_brkm(TBRO in test_send() [all...] |
/third_party/ltp/testcases/kernel/syscalls/mmap/ |
H A 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(TBRO in mmapzero() [all...] |
H A 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(TBRO in sig_handler() [all...] |
/third_party/ltp/testcases/kernel/syscalls/rt_sigprocmask/ |
H A 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(TFAI in main() [all...] |
/third_party/ltp/testcases/kernel/fs/ftest/ |
H A 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(TBRO in dotest() [all...] |
H A D | ftest01.c | 144 tst_brkm(TBROK | TERRNO, NULL, "sigset failed"); in setup() 172 tst_brkm(TBROK | TERRNO, NULL, "fork failed"); in runtest() 216 tst_brkm(TBROK | TERRNO, sync, "fork failed"); in runtest() 267 tst_brkm(TBROK, in dotest() 273 tst_brkm(TBROK, in dotest() 279 tst_brkm(TBROK, NULL, in dotest() 284 tst_brkm(TBROK, in dotest() 290 tst_brkm(TBROK, in dotest() 336 tst_brkm(TFAIL, in dotest() 342 tst_brkm(TFAI in dotest() [all...] |
H A 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(TFAI in dotest() [all...] |
/third_party/ltp/testcases/lib/ |
H A 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 TBRO [all...] |
/third_party/ltp/testcases/kernel/syscalls/mremap/ |
H A 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()
|
/third_party/ltp/testcases/kernel/controllers/cpuset/ |
H A D | cpuset_funcs.sh | 85 tst_brkm TCONF "The total of CPUs is less than $1" 91 tst_brkm TCONF "CPUs are not numbered continuously starting at 0 ($cpu_string)" 98 tst_brkm TCONF "The total of nodes is less than $1" 104 tst_brkm TCONF "Nodes are not numbered continuously starting at 0 ($mem_string)" 111 tst_brkm TCONF "Test must be run as root" 127 tst_brkm TCONF "Cpuset is not supported" 133 tst_brkm TCONF "Microsoft Hyper-V detected, no support for CPU hotplug" 160 cleanup || tst_brkm TFAIL "Can't cleanup... Exiting" 168 tst_brkm TFAIL "Could not mount cgroup filesystem with"\ 193 tst_brkm TFAI [all...] |
/third_party/ltp/testcases/kernel/fs/fs_perms/ |
H A D | fs_perms.c | 76 tst_brkm(TBROK | TERRNO, cleanup, in testsetup() 84 tst_brkm(TBROK, cleanup, in testsetup() 88 tst_brkm(TBROK, cleanup, "Calling fprintf failed."); in testsetup() 92 tst_brkm(TBROK | TERRNO, cleanup, "Calling fclose failed."); in testsetup() 95 tst_brkm(TBROK | TERRNO, cleanup, in testsetup() 99 tst_brkm(TBROK | TERRNO, cleanup, in testsetup() 115 tst_brkm(TBROK | TERRNO, cleanup, in testfperm() 119 tst_brkm(TBROK | TERRNO, cleanup, in testfperm() 146 tst_brkm(TBROK | TERRNO, cleanup, "fork failed"); in testfperm() 172 tst_brkm(TBRO in str_to_l() [all...] |
/third_party/ltp/testcases/kernel/fs/stream/ |
H A D | stream05.c | 77 tst_brkm(TFAIL, NULL, "fopen(%s) a+ failed: %s", in main() 85 tst_brkm(TFAIL, NULL, "fopen(%s) r+ failed: %s", in main() 111 tst_brkm(TFAIL, NULL, "read failed: %s", in main() 136 tst_brkm(TFAIL, NULL, "fopen(%s) r+ failed: %s", in main() 183 tst_brkm(TFAIL, NULL, "fopen(%s) rb failed: %s", in main() 190 tst_brkm(TFAIL, NULL, "fopen(%s) wb failed: %s", in main() 197 tst_brkm(TFAIL, NULL, "fopen(%s) ab failed: %s", in main() 204 tst_brkm(TFAIL, NULL, "fopen(%s) rb+ failed: %s", in main() 211 tst_brkm(TFAIL, NULL, "fopen(%s) wb+ failed: %s", in main() 218 tst_brkm(TFAI in main() [all...] |
/third_party/ltp/testcases/kernel/hotplug/cpu_hotplug/functional/ |
H A D | cpuhotplug05.sh | 40 tst_brkm TBROK "CPU${CPU_TO_TEST} cannot be onlined" 67 tst_brkm TCONF "Microsoft Hyper-V detected, no support for CPU hotplug" 71 tst_brkm TCONF "system doesn't have required CPU hotplug support" 75 tst_brkm TBROK "usage: ${0##*} <CPU to offline>" 80 tst_brkm TCONF "cpu${CPU_TO_TEST} doesn't support hotplug" 86 tst_brkm TBROK "CPU${CPU_TO_TEST} cannot be offlined" 114 tst_brkm TBROK "SAR output file is empty" 125 tst_brkm TBROK "Field $i is '$field', '0.00' expected" 132 tst_brkm TBROK "CPU${CPU_TO_TEST} cannot be onlined" 155 tst_brkm TBRO [all...] |
/third_party/ltp/testcases/kernel/mem/mem/ |
H A D | mem02.c | 109 tst_brkm(TFAIL, NULL, "calloc - alloc of %dMB failed", in main() 115 tst_brkm(TFAIL, NULL, in main() 125 tst_brkm(TFAIL, NULL, in main() 138 tst_brkm(TFAIL, NULL, "malloc did not alloc memory "); in main() 146 tst_brkm(TFAIL, NULL, in main() 169 tst_brkm(TFAIL, NULL, in main() 182 tst_brkm(TFAIL, NULL, in main() 200 tst_brkm(TFAIL, NULL, in main() 221 tst_brkm(TFAIL, NULL, in main() 243 tst_brkm(TFAI in on_mem_fault() [all...] |