/external/ltp/testcases/kernel/syscalls/remap_file_pages/ |
D | remap_file_pages02.c | 69 } tcases[] = { variable 80 tcases[i].start, tcases[i].size, in run() 81 tcases[i].prot, tcases[i].pgoff, in run() 82 tcases[i].flags)); in run() 84 if ((TST_RET == -1) && (TST_ERR == tcases[i].exp_errno)) { in run() 86 tcases[i].err_desc); in run() 92 tcases[i].err_desc, tst_strerrno(tcases[i].exp_errno)); in run() 97 tcases[test].start = data01; in setup01() 98 tcases[test].size = page_sz; in setup01() 103 tcases[test].start = data + page_sz; in setup02() [all …]
|
/external/ltp/testcases/kernel/syscalls/creat/ |
D | creat06.c | 76 } tcases[] = { variable 91 if (tcases[i].setup != NULL) in verify_creat() 92 tcases[i].setup(i); in verify_creat() 94 TEST(creat(tcases[i].fname, tcases[i].mode)); in verify_creat() 96 if (tcases[i].cleanup != NULL) in verify_creat() 97 tcases[i].cleanup(); in verify_creat() 104 if (TST_ERR == tcases[i].error) { in verify_creat() 110 tst_strerrno(tcases[i].error)); in verify_creat() 133 if (tcases[i].fname) in bad_addr_setup() 136 tcases[i].fname = SAFE_MMAP(0, 1, PROT_NONE, in bad_addr_setup() [all …]
|
D | creat04.c | 27 } tcases[] = { variable 36 TEST(creat(tcases[i].fname, 0444)); in child_fn() 39 SAFE_UNLINK(tcases[i].fname); in child_fn() 72 .tcnt = ARRAY_SIZE(tcases),
|
/external/ltp/testcases/kernel/syscalls/add_key/ |
D | add_key02.c | 29 } tcases[] = { variable 47 TEST(add_key(tcases[i].type, in verify_add_key() 48 "abc:def", NULL, tcases[i].plen, KEY_SPEC_PROCESS_KEYRING)); in verify_add_key() 53 tcases[i].type); in verify_add_key() 59 tcases[i].type); in verify_add_key() 65 tcases[i].type); in verify_add_key() 74 if (TST_ERR == EBADMSG && !strcmp(tcases[i].type, "asymmetric")) { in verify_add_key() 80 tcases[i].type); in verify_add_key() 84 .tcnt = ARRAY_SIZE(tcases),
|
/external/ltp/testcases/kernel/syscalls/ioctl/ |
D | ioctl01.c | 39 } tcases[] = { variable 59 TEST(ioctl(*(tcases[i].fd), tcases[i].request, tcases[i].s_tio)); in verify_ioctl() 66 if (TST_ERR != tcases[i].error) { in verify_ioctl() 69 tst_strerrno(tcases[i].error)); in verify_ioctl() 86 for (i = 0; i < ARRAY_SIZE(tcases); i++) { in setup() 87 if (tcases[i].request == INVAL_IOCTL) in setup() 88 tcases[i].error = EINVAL; in setup() 110 .tcnt = ARRAY_SIZE(tcases),
|
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmget/ |
D | hugeshmget02.c | 45 } tcases[] = { variable 61 if (*tcases[i].skey == -1) { in test_hugeshmget() 62 shm_id_2 = shmget(*(tcases[i].skey), 0, 0); in test_hugeshmget() 67 TEST(shmget(*(tcases[i].skey), tcases[i].size_coe * shm_size, in test_hugeshmget() 68 tcases[i].flags)); in test_hugeshmget() 74 if (TST_ERR != tcases[i].error) { in test_hugeshmget() 77 tst_strerrno(tcases[i].error)); in test_hugeshmget() 119 .tcnt = ARRAY_SIZE(tcases),
|
/external/ltp/testcases/kernel/syscalls/timer_create/ |
D | timer_create02.c | 52 } tcases[] = { variable 62 struct testcase *tc = &tcases[n]; in run() 80 for (i = 0; i < ARRAY_SIZE(tcases); i++) { in setup() 81 if (!tcases[i].ev_ptr) in setup() 82 tcases[i].ev_ptr = tst_get_bad_addr(NULL); in setup() 84 if (!tcases[i].kt_ptr) in setup() 85 tcases[i].kt_ptr = tst_get_bad_addr(NULL); in setup() 91 .tcnt = ARRAY_SIZE(tcases),
|
/external/ltp/testcases/kernel/syscalls/fanotify/ |
D | fanotify11.c | 51 static unsigned int tcases[] = { variable 65 i, (tcases[i] & FAN_REPORT_TID) ? "with" : "without", in test01() 68 fd_notify = fanotify_init(tcases[i], 0); in test01() 70 if (errno == EINVAL && (tcases[i] & FAN_REPORT_TID)) { in test01() 76 tcases[i]); in test01() 88 if ((tcases[i] & FAN_REPORT_TID) && event.pid == tid) in test01() 90 else if (!(tcases[i] & FAN_REPORT_TID) && event.pid == tgid) in test01() 112 .tcnt = ARRAY_SIZE(tcases),
|
/external/ltp/testcases/kernel/syscalls/unlink/ |
D | unlink07.c | 29 } tcases[] = { variable 40 struct test_case_t *tc = &tcases[n]; in verify_unlink() 67 for (n = 0; n < ARRAY_SIZE(tcases); n++) { in setup() 68 if (!tcases[n].name) in setup() 69 tcases[n].name = tst_get_bad_addr(NULL); in setup() 76 .tcnt = ARRAY_SIZE(tcases),
|
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmctl/ |
D | hugeshmctl02.c | 58 } tcases[] = { variable 73 for (i = 0; i < ARRAY_SIZE(tcases); i++) { in test_hugeshmctl() 74 TEST(shmctl(*(tcases[i].shmid), tcases[i].cmd, tcases[i].sbuf)); in test_hugeshmctl() 80 if (TST_ERR == tcases[i].error) { in test_hugeshmctl() 86 "%d, got", tcases[i].error); in test_hugeshmctl()
|
D | hugeshmctl03.c | 68 } tcases[] = { variable 99 for (i = 0; i < ARRAY_SIZE(tcases); i++) { in do_child() 100 TEST(shmctl(*(tcases[i].shmid), tcases[i].cmd, tcases[i].sbuf)); in do_child() 106 if (TST_ERR == tcases[i].error) in do_child() 112 "%d, got", tcases[i].error); in do_child()
|
D | hugeshmctl01.c | 78 } tcases[] = { variable 102 for (i = 0; i < ARRAY_SIZE(tcases); i++) { in test_hugeshmctl() 107 if (tcases[i].func_setup != NULL) in test_hugeshmctl() 108 (*tcases[i].func_setup) (); in test_hugeshmctl() 110 if (shmctl(shm_id_1, tcases[i].cmd, &buf) == -1) { in test_hugeshmctl() 114 (*tcases[i].func_test) (); in test_hugeshmctl()
|
/external/ltp/testcases/kernel/syscalls/mknod/ |
D | mknod01.c | 54 int tcases[] = { /* modes to give nodes created (1 per text case) */ variable 65 int TST_TOTAL = ARRAY_SIZE(tcases); 84 if (S_ISCHR(tcases[i])) in main() 88 TEST(mknod(PATH, tcases[i], dev)); in main() 93 PATH, tcases[i], dev, TEST_ERRNO, in main() 98 PATH, tcases[i], dev, TEST_RETURN); in main()
|
/external/ltp/lib/newlib_tests/ |
D | tst_strstatus.c | 16 } tcases[] = { variable 26 const char *str_status = tst_strstatus(tcases[n].status); in do_test() 28 if (strcmp(str_status, tcases[n].str)) in do_test() 29 tst_res(TFAIL, "%s != %s", str_status, tcases[n].str); in do_test() 36 .tcnt = ARRAY_SIZE(tcases),
|
/external/ltp/testcases/kernel/syscalls/open/ |
D | open08.c | 62 } tcases[] = { variable 73 TEST(open(*tcases[i].fname, tcases[i].flags, in verify_open() 81 if (TST_ERR == tcases[i].error) { in verify_open() 88 strerror(TST_ERR), tcases[i].error); in verify_open() 114 .tcnt = ARRAY_SIZE(tcases),
|
/external/ltp/testcases/kernel/syscalls/execve/ |
D | execve03.c | 63 } tcases[] = { variable 105 for (i = 0; i < ARRAY_SIZE(tcases); i++) { in setup() 106 if (!tcases[i].tname) in setup() 107 tcases[i].tname = tst_get_bad_addr(NULL); in setup() 113 struct tcase *tc = &tcases[i]; in verify_execve() 133 .tcnt = ARRAY_SIZE(tcases),
|
/external/ltp/testcases/kernel/syscalls/move_pages/ |
D | move_pages12.c | 77 } tcases[] = { variable 147 addr = SAFE_MMAP(NULL, tcases[n].tpages * hpsz, PROT_READ | PROT_WRITE, in do_test() 150 SAFE_MUNMAP(addr, tcases[n].tpages * hpsz); in do_test() 154 do_child(tcases[n].tpages); in do_test() 157 ptr = mmap(NULL, tcases[n].tpages * hpsz, in do_test() 173 memset(addr, 0, tcases[n].tpages * hpsz); in do_test() 175 if (tcases[n].offline) { in do_test() 176 ret = do_soft_offline(tcases[n].tpages); in do_test() 181 SAFE_MUNMAP(addr, tcases[n].tpages * hpsz); in do_test() 188 SAFE_MUNMAP(addr, tcases[n].tpages * hpsz); in do_test() [all …]
|
/external/ltp/testcases/kernel/syscalls/rmdir/ |
D | rmdir02.c | 40 } tcases[] = { variable 63 for (i = 0; i < ARRAY_SIZE(tcases); i++) { in setup() 64 if (!tcases[i].dir) in setup() 65 tcases[i].dir = tst_get_bad_addr(NULL); in setup() 81 struct testcase *tc = &tcases[n]; in verify_rmdir() 103 .tcnt = ARRAY_SIZE(tcases),
|
/external/ltp/testcases/kernel/syscalls/fstatfs/ |
D | fstatfs01.c | 62 } tcases[2] = { variable 67 int TST_TOTAL = ARRAY_SIZE(tcases); 82 TEST(fstatfs(*tcases[i].fd, &stats)); in main() 85 tst_resm(TFAIL | TTERRNO, "%s", tcases[i].msg); in main() 88 tcases[i].msg, stats.f_type); in main()
|
/external/ltp/testcases/kernel/syscalls/signal/ |
D | signal01.c | 66 } tcases[] = { variable 76 int TST_TOTAL = ARRAY_SIZE(tcases); 120 if (tcases[tc].kill) { in do_test() 164 void (*sighandler)(int) = tcases[tcase].sighandler; in do_child() 168 if (tcases[tcase].kill) in do_child()
|
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmat/ |
D | hugeshmat01.c | 61 } tcases[] = { variable 77 struct tcase *tc = &tcases[i]; in verify_hugeshmat() 144 orig_add = addr + ((unsigned long)tcases[i].addr % SHMLBA); in check_functionality() 145 if (orig_add != tcases[i].addr) { in check_functionality() 198 .tcnt = ARRAY_SIZE(tcases),
|
/external/ltp/testcases/kernel/syscalls/fchmod/ |
D | fchmod06.c | 29 } tcases[] = { variable 37 struct tcase *tc = &tcases[i]; in verify_fchmod() 47 if (TST_ERR == tcases[i].exp_errno) { in verify_fchmod() 82 .tcnt = ARRAY_SIZE(tcases),
|
/external/ltp/testcases/kernel/syscalls/fstat/ |
D | fstat03.c | 35 } tcases[] = { variable 42 struct tcase *tc = &tcases[tc_num]; in check_fstat() 73 if (tcases[tc_num].exp_err == EFAULT && WTERMSIG(status) == SIGSEGV) { in run() 97 .tcnt = ARRAY_SIZE(tcases),
|
/external/ltp/testcases/kernel/syscalls/quotactl/ |
D | quotactl06.c | 78 } tcases[] = { variable 94 struct tcase *tc = &tcases[n]; in verify_quotactl() 175 for (i = 0; i < ARRAY_SIZE(tcases); i++) { in setup() 176 if (!tcases[i].addr) in setup() 177 tcases[i].addr = tst_get_bad_addr(NULL); in setup() 189 .tcnt = ARRAY_SIZE(tcases),
|
/external/ltp/testcases/kernel/syscalls/nanosleep/ |
D | nanosleep04.c | 23 static struct timespec tcases[] = { variable 31 TEST(nanosleep(&tcases[n], NULL)); in verify_nanosleep() 50 .tcnt = ARRAY_SIZE(tcases),
|