/external/ltp/testcases/kernel/pty/ |
D | ptem01.c | 63 tst_brkm(TBROK, NULL, "%s", MASTERCLONE); in test1() 68 tst_brkm(TBROK | TERRNO, NULL, "ptsname() call failed"); in test1() 72 tst_brkm(TBROK | TERRNO, NULL, "grantpt() call failed"); in test1() 76 tst_brkm(TBROK, NULL, "unlockpt() call failed"); in test1() 80 tst_brkm(TFAIL, NULL, "Could not open %s", slavename); in test1() 84 tst_brkm(TFAIL, NULL, "TCGETS"); in test1() 88 tst_brkm(TFAIL, NULL, "TCSETS"); in test1() 92 tst_brkm(TFAIL, NULL, "TCSETSW"); in test1() 96 tst_brkm(TFAIL, NULL, "TCSETSF"); in test1() 100 tst_brkm(TFAIL, NULL, "TCSETS"); in test1() [all …]
|
D | pty01.c | 83 tst_brkm(TBROK | TERRNO, NULL, MASTERCLONE); in test1() 88 tst_brkm(TBROK | TERRNO, NULL, "ptsname() call failed"); in test1() 92 tst_brkm(TBROK | TERRNO, NULL, "grantpt() call failed"); in test1() 96 tst_brkm(TBROK | TERRNO, NULL, "stat(%s) failed", slavename); in test1() 99 tst_brkm(TBROK, NULL, "uid mismatch"); in test1() 103 tst_brkm(TBROK, NULL, "mode mismatch (mode=%o)", st.st_mode); in test1() 108 tst_brkm(TBROK, NULL, "open didn't fail as expected!"); in test1() 112 tst_brkm(TBROK | TERRNO, NULL, "unlockpt() failed"); in test1() 117 tst_brkm(TBROK, NULL, "Could not open %s", slavename); in test1() 128 tst_brkm(TFAIL | TERRNO, NULL, "write to master"); in test1() [all …]
|
/external/ltp/testcases/kernel/containers/netns/ |
D | netns_helper.sh | 72 tst_brkm TBROK "don't obtain valid iproute version" 76 tst_brkm TCONF \ 119 tst_brkm TCONF "setns not supported" 130 tst_brkm TBROK \ 143 tst_brkm TBROK \ 149 tst_brkm TBROK "fourth argument must be the IPv4 address for veth0" 152 tst_brkm TBROK "fifth argument must be the IPv4 address for veth1" 155 tst_brkm TBROK "sixth argument must be the IPv6 address for veth0" 158 tst_brkm TBROK "seventh argument must be the IPv6 address for veth1" 172 tst_brkm TBROK "second argument must be an ip version (ipv4|ipv6)" [all …]
|
/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 …]
|
/external/ltp/utils/sctp/func_tests/ |
D | test_1_to_1_sockopt.c | 117 tst_brkm(TBROK, tst_exit, "setsockopt with a bad socket " in main() 126 tst_brkm(TBROK, tst_exit, "Failed to mkstemp %s: %s", in main() 134 tst_brkm(TBROK, tst_exit, "setsockopt with an invalid socket " in main() 142 tst_brkm(TBROK, tst_exit, "setsockopt with invalid level " in main() 151 tst_brkm(TBROK, tst_exit, "setsockopt with invalid option " in main() 159 tst_brkm(TBROK, tst_exit, "setsockopt with invalid option " in main() 167 tst_brkm(TBROK, tst_exit, "getsockopt with a bad socket " in main() 176 tst_brkm(TBROK, tst_exit, "Failed to mkstemp %s: %s", in main() 184 tst_brkm(TBROK, tst_exit, "getsockopt with an invalid socket " in main() 196 tst_brkm(TBROK, tst_exit, "getsockopt with invalid level " in main() [all …]
|
D | test_getname.c | 99 tst_brkm(TBROK, tst_exit, "getsockname: %s", strerror(errno)); in main() 108 tst_brkm(TBROK, tst_exit, "getpeername on an unconnected " in main() 132 tst_brkm(TBROK, tst_exit, "getsockname on a connected client " in main() 142 tst_brkm(TBROK, tst_exit, "getpeername on a connected client " in main() 157 tst_brkm(TBROK, tst_exit, "getsockname on a connected server " in main() 168 tst_brkm(TBROK, tst_exit, "getpeername on a connected server " in main() 174 tst_brkm(TBROK, tst_exit, "Server's local port(%d) doesn't " in main() 179 tst_brkm(TBROK, tst_exit, "Server's peer port(%d) doesn't " in main() 184 tst_brkm(TBROK, tst_exit, "Server's local address and client's " in main() 188 tst_brkm(TBROK, tst_exit, "Server's peer address and client's " in main() [all …]
|
D | test_1_to_1_socket_bind_listen.c | 104 tst_brkm(TBROK, tst_exit, "socket() with invalid domain " in main() 112 tst_brkm(TBROK, tst_exit, "socket() with invalid type " in main() 120 tst_brkm(TBROK, tst_exit, "valid socket() call " in main() 128 tst_brkm(TBROK, tst_exit, "bind() with invalid address ptr " in main() 140 tst_brkm(TBROK, tst_exit, "bind() with invalid address length " in main() 149 tst_brkm(TBROK, tst_exit, "Failed to mkstemp %s: %s", in main() 157 tst_brkm(TBROK, tst_exit, "bind() with invalid socket " in main() 167 tst_brkm(TBROK, tst_exit, "bind() with invalid local " in main() 180 tst_brkm(TBROK, tst_exit, "bind() on an already bound socket " in main() 199 tst_brkm(TBROK, tst_exit, "bind() on reserverd port " in main() [all …]
|
/external/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl31.c | 115 tst_brkm(TBROK | TERRNO, cleanup, "fcntl set O_ASYNC failed"); in setup() 121 tst_brkm(TBROK | TERRNO, cleanup, "setpgrp() failed"); in setup() 124 tst_brkm(TBROK | TERRNO, cleanup, "getpgid() failed"); in setup() 133 tst_brkm(TFAIL | TTERRNO, cleanup, in setup() 142 tst_brkm(TFAIL | TTERRNO, cleanup, in setup() 152 tst_brkm(TBROK | TERRNO, cleanup, "sigprocmask failed"); in setup() 162 tst_brkm(TFAIL | TTERRNO, cleanup, in setown_pid_test() 169 tst_brkm(TFAIL | TTERRNO, cleanup, in setown_pid_test() 178 tst_brkm(TFAIL | TTERRNO, cleanup, in setown_pgrp_test() 186 tst_brkm(TFAIL | TTERRNO, cleanup, in setown_pgrp_test() [all …]
|
/external/ltp/testcases/kernel/syscalls/unshare/ |
D | unshare01.c | 171 tst_brkm(TFAIL | TERRNO, cleanup, in main() 191 tst_brkm(TBROK | TERRNO, cleanup, in main() 196 tst_brkm(TCONF, cleanup, in main() 201 tst_brkm(TFAIL, cleanup, in main() 209 tst_brkm(TFAIL | TERRNO, cleanup, in main() 229 tst_brkm(TBROK | TERRNO, cleanup, in main() 234 tst_brkm(TCONF, cleanup, in main() 239 tst_brkm(TFAIL, cleanup, in main() 247 tst_brkm(TFAIL | TERRNO, cleanup, in main() 267 tst_brkm(TBROK | TERRNO, cleanup, in main() [all …]
|
/external/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 …]
|
/external/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 …]
|
/external/ltp/testcases/kernel/syscalls/rmdir/ |
D | rmdir03.c | 131 tst_brkm(TBROK, cleanup, in main() 136 tst_brkm(TBROK, cleanup, in main() 141 tst_brkm(TBROK, cleanup, "failed to stat directory %s " in main() 148 tst_brkm(TBROK, cleanup, in main() 154 tst_brkm(TBROK, cleanup, in main() 159 tst_brkm(TBROK, cleanup, "fork() failed"); in main() 165 tst_brkm(TBROK, cleanup, "self_exec failed"); in main() 176 tst_brkm(TBROK, cleanup, "mkdir(%s, %#o) Failed", in main() 181 tst_brkm(TBROK, cleanup, "mkdir(%s, %#o) Failed", in main() 186 tst_brkm(TBROK, cleanup, "fork() failed"); in main() [all …]
|
/external/ltp/testcases/kernel/syscalls/fallocate/ |
D | fallocate04.c | 117 tst_brkm(TFAIL, cleanup, "not expected file data"); in check_file_data() 127 tst_brkm(TCONF, cleanup, "fallocate() not supported"); in test01() 128 tst_brkm(TFAIL | TERRNO, cleanup, "fallocate() failed"); in test01() 148 tst_brkm(TCONF, cleanup, in test02() 155 tst_brkm(TCONF, cleanup, in test02() 158 tst_brkm(TFAIL | TERRNO, cleanup, "fallocate() failed"); in test02() 167 tst_brkm(TFAIL | TERRNO, cleanup, in test02() 174 tst_brkm(TBROK | TERRNO, cleanup, in test02() 186 tst_brkm(TFAIL, cleanup, "not expected allocated size"); in test02() 203 tst_brkm(TCONF, cleanup, in test03() [all …]
|
/external/ltp/testcases/kernel/syscalls/inotify/ |
D | inotify01.c | 84 tst_brkm(TBROK | TERRNO, cleanup, in main() 91 tst_brkm(TBROK | TERRNO, cleanup, in main() 98 tst_brkm(TBROK | TERRNO, cleanup, in main() 105 tst_brkm(TBROK, cleanup, "close(%s) failed", fname); in main() 111 tst_brkm(TBROK, cleanup, in main() 118 tst_brkm(TBROK, cleanup, in main() 125 tst_brkm(TBROK, cleanup, "close(%s) failed", fname); in main() 131 tst_brkm(TBROK, cleanup, in main() 141 tst_brkm(TBROK, cleanup, in main() 206 tst_brkm(TBROK | TERRNO, cleanup, in setup() [all …]
|
/external/ltp/testcases/kernel/mem/hugetlb/hugemmap/ |
D | hugemmap05.c | 153 tst_brkm(TBROK | TERRNO, cleanup, "ftok"); in overcommit() 157 tst_brkm(TBROK | TERRNO, cleanup, "shmget"); in overcommit() 163 tst_brkm(TBROK | TERRNO, cleanup, "open"); in overcommit() 168 tst_brkm(TBROK | TERRNO, cleanup, "mmap"); in overcommit() 190 tst_brkm(TBROK | TERRNO, cleanup, "fopen"); in overcommit() 205 tst_brkm(TBROK | TERRNO, cleanup, "shmat"); in overcommit() 230 tst_brkm(TBROK | TERRNO, cleanup, "fopen"); in overcommit() 243 tst_brkm(TBROK | TERRNO, cleanup, "shmdt"); in overcommit() 303 tst_brkm(TCONF, NULL, in setup() 315 tst_brkm(TBROK | TERRNO, cleanup, "fopen"); in setup() [all …]
|
/external/ltp/testcases/lib/ |
D | test.sh | 40 *) tst_brkm TBROK "Invalid resm type '$1'";; 65 tst_brkm() function 71 *) tst_brkm TBROK "Invalid tst_brkm type '$1'";; 83 tst_brkm TBROK "Requires child pid as parameter" 92 tst_brkm TBROK "Child process pid='$child_pid' does not exist" 100 tst_brkm TCONF "Must be super/root for this test!" 147 tst_brkm TCONF "'$cmd' not found" 226 tst_brkm TBROK "$@ failed" 266 tst_brkm TBROK "$@ failed" 299 tst_brkm TBROK "No fs_type specified" [all …]
|
/external/ltp/testcases/kernel/syscalls/readlink/ |
D | readlink04.c | 84 tst_brkm(TFAIL, cleanup, "TESTFILE %s " in main() 119 tst_brkm(TBROK, NULL, "getcwd failed"); in setup() 122 tst_brkm(TBROK, cleanup, "getpwname() failed"); in setup() 126 tst_brkm(TBROK, cleanup, "chown() failed"); in setup() 129 tst_brkm(TBROK|TERRNO, cleanup, "chmod(%s) failed", tmp_dir); in setup() 133 tst_brkm(TBROK|TERRNO, cleanup, "open(%s) failed", TESTFILE); in setup() 136 tst_brkm(TBROK|TERRNO, cleanup, "close(%s) failed", TESTFILE); in setup() 139 tst_brkm(TBROK|TERRNO, cleanup, "symlink(%s, %s) failed", in setup() 151 tst_brkm(TBROK, cleanup, "getpwname() failed for nobody"); in setup() 154 tst_brkm(TBROK, cleanup, "seteuid() failed for nobody"); in setup() [all …]
|
/external/ltp/testcases/kernel/syscalls/dup2/ |
D | dup203.c | 84 tst_brkm(TBROK, cleanup, "cannot create first file"); in main() 86 tst_brkm(TBROK, cleanup, "filename0: write(2) failed"); in main() 89 tst_brkm(TBROK, cleanup, "Cannot create second file"); in main() 91 tst_brkm(TBROK, cleanup, "filename1: write(2) failed"); in main() 94 tst_brkm(TBROK, cleanup, "close(2) fd0 failed"); in main() 96 tst_brkm(TBROK, cleanup, "open(2) on filename0 failed"); in main() 99 tst_brkm(TBROK, cleanup, "close(2) fd1 failed"); in main() 101 tst_brkm(TBROK, cleanup, "open(2) on filename1 failed"); in main() 115 tst_brkm(TBROK, cleanup, "read(2) failed"); in main() 137 tst_brkm(TBROK, cleanup, "Cannot create first file"); in main() [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() 301 tst_brkm(TBROK, NULL, in parent_rout() 327 tst_brkm(TBROK, NULL, in parent_rout() 352 tst_brkm(TBROK | TERRNO, 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 …]
|
/external/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", in test_send() 203 tst_brkm(TBROK, tst_exit, "sendto: error:%d errno:%d", in test_sendto() [all …]
|
/external/ltp/testcases/kernel/syscalls/ipc/msgctl/ |
D | msgctl07.c | 84 tst_brkm(TFAIL | TERRNO, NULL, "msgget() failed"); in main() 91 tst_brkm(TFAIL, NULL, in main() 124 tst_brkm(TFAIL, NULL, "test failed. status = %d", in main() 131 tst_brkm(TFAIL, NULL, in main() 182 tst_brkm(TFAIL, NULL, "test failed. status = %d", in main() 195 tst_brkm(TFAIL, NULL, "msgctl(msqid, IPC_RMID) failed"); in main() 219 tst_brkm(TFAIL | TERRNO, NULL, "msgrcv() failed"); in do_child_1() 222 tst_brkm(TFAIL, NULL, "error: received %d bytes expected %d", in do_child_1() 228 tst_brkm(TFAIL, NULL, "error: corrup message"); in do_child_1() 239 tst_brkm(TFAIL | TERRNO, NULL, "msgrcv() failed"); in do_child_2() [all …]
|
/external/ltp/testcases/kernel/fs/ftest/ |
D | ftest03.c | 141 tst_brkm(TBROK | TERRNO, NULL, "getcwd() failed"); in setup() 153 tst_brkm(TBROK, NULL, "\tCan't chdir(%s), error %d.", fuss, in setup() 168 tst_brkm(TBROK, NULL, " sigset failed: signo = 15"); in setup() 187 tst_brkm(TBROK, NULL, "\tError %d creating %s/%s.", in runtest() 200 tst_brkm(TBROK | TERRNO, NULL, "fork failed"); in runtest() 242 tst_brkm(TBROK | TERRNO, sync, "fork failed"); in runtest() 304 tst_brkm(TBROK, NULL, "\tmalloc failed"); in dotest() 308 tst_brkm(TBROK, NULL, "\tmalloc failed"); in dotest() 319 tst_brkm(TBROK, NULL, "\tmalloc failed"); in dotest() 328 tst_brkm(TBROK, NULL, "\tmalloc failed"); in dotest() [all …]
|
/external/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 …]
|
/external/ltp/testcases/kernel/syscalls/mknod/ |
D | mknod04.c | 211 tst_brkm(TBROK, cleanup, "chmod() failed"); in setup() 225 tst_brkm(TBROK, cleanup, "%s not in /etc/passwd", LTPUSER); in setup() 239 tst_brkm(TBROK, cleanup, "mkdir(2) of %s failed", DIR_TEMP); in setup() 242 tst_brkm(TBROK, cleanup, "chown(2) of %s failed", DIR_TEMP); in setup() 245 tst_brkm(TBROK, cleanup, "chmod(2) of %s failed", DIR_TEMP); in setup() 253 tst_brkm(TBROK, cleanup, "stat(2) of %s failed", DIR_TEMP); in setup() 258 tst_brkm(TBROK, cleanup, in setup() 264 tst_brkm(TBROK, cleanup, "%s: Incorrect group", DIR_TEMP); in setup() 272 tst_brkm(TBROK, cleanup, in setup() 276 tst_brkm(TBROK, cleanup, in setup() [all …]
|
D | mknod03.c | 210 tst_brkm(TBROK, cleanup, "chmod() failed"); in setup() 223 tst_brkm(TBROK, cleanup, "%s not in /etc/passwd", LTPUSER); in setup() 237 tst_brkm(TBROK, cleanup, "mkdir(2) of %s failed", DIR_TEMP); in setup() 240 tst_brkm(TBROK, cleanup, "chown(2) of %s failed", DIR_TEMP); in setup() 243 tst_brkm(TBROK, cleanup, "chmod(2) of %s failed", DIR_TEMP); in setup() 251 tst_brkm(TBROK, cleanup, "stat(2) of %s failed", DIR_TEMP); in setup() 256 tst_brkm(TBROK, cleanup, in setup() 262 tst_brkm(TBROK, cleanup, "%s: Incorrect group", DIR_TEMP); in setup() 270 tst_brkm(TBROK, cleanup, in setup() 274 tst_brkm(TBROK, cleanup, in setup() [all …]
|