Home
last modified time | relevance | path

Searched refs:tcases (Results 1 – 25 of 183) sorted by relevance

12345678

/third_party/ltp/testcases/kernel/syscalls/remap_file_pages/
Dremap_file_pages02.c69 } 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 …]
/third_party/ltp/testcases/kernel/syscalls/add_key/
Dadd_key02.c29 } tcases[] = { variable
48 TEST(add_key(tcases[i].type, in verify_add_key()
49 "abc:def", NULL, tcases[i].plen, KEY_SPEC_PROCESS_KEYRING)); in verify_add_key()
54 tcases[i].type); in verify_add_key()
60 tcases[i].type); in verify_add_key()
66 tcases[i].type); in verify_add_key()
75 if (TST_ERR == EBADMSG && !strcmp(tcases[i].type, "asymmetric")) { in verify_add_key()
81 tcases[i].type); in verify_add_key()
85 .tcnt = ARRAY_SIZE(tcases),
/third_party/ltp/testcases/kernel/syscalls/creat/
Dcreat06.c76 } 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 …]
Dcreat04.c27 } 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),
/third_party/ltp/testcases/kernel/syscalls/ioctl/
Dioctl01.c37 } tcases[] = { variable
57 TEST(ioctl(*(tcases[i].fd), tcases[i].request, tcases[i].s_tio)); in verify_ioctl()
64 if (TST_ERR != tcases[i].error) { in verify_ioctl()
67 tst_strerrno(tcases[i].error)); in verify_ioctl()
84 for (i = 0; i < ARRAY_SIZE(tcases); i++) { in setup()
85 if (tcases[i].request == INVAL_IOCTL) in setup()
86 tcases[i].error = EINVAL; in setup()
108 .tcnt = ARRAY_SIZE(tcases),
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmget/
Dhugeshmget02.c32 } tcases[] = { variable
48 if (*tcases[i].skey == -1) { in test_hugeshmget()
49 shm_id_2 = shmget(*(tcases[i].skey), 0, 0); in test_hugeshmget()
54 TEST(shmget(*(tcases[i].skey), tcases[i].size_coe * shm_size, in test_hugeshmget()
55 tcases[i].flags)); in test_hugeshmget()
61 if (TST_ERR != tcases[i].error) { in test_hugeshmget()
64 tst_strerrno(tcases[i].error)); in test_hugeshmget()
102 .tcnt = ARRAY_SIZE(tcases),
/third_party/ltp/testcases/kernel/syscalls/timer_create/
Dtimer_create02.c52 } 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),
/third_party/ltp/testcases/kernel/syscalls/fanotify/
Dfanotify11.c51 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),
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmctl/
Dhugeshmctl03.c57 } tcases[] = { variable
88 for (i = 0; i < ARRAY_SIZE(tcases); i++) { in do_child()
89 TEST(shmctl(*(tcases[i].shmid), tcases[i].cmd, tcases[i].sbuf)); in do_child()
95 if (TST_ERR == tcases[i].error) in do_child()
101 "%d, got", tcases[i].error); in do_child()
Dhugeshmctl02.c47 } tcases[] = { variable
60 TEST(shmctl(*(tcases[i].shmid), tcases[i].cmd, tcases[i].sbuf)); in test_hugeshmctl()
66 if (TST_ERR == tcases[i].error) { in test_hugeshmctl()
73 tcases[i].error); in test_hugeshmctl()
109 .tcnt = ARRAY_SIZE(tcases),
Dhugeshmctl01.c65 } tcases[] = { variable
85 if (tcases[i].func_setup != NULL) in test_hugeshmctl()
86 (*tcases[i].func_setup) (); in test_hugeshmctl()
88 if (shmctl(shm_id_1, tcases[i].cmd, &buf) == -1) { in test_hugeshmctl()
92 (*tcases[i].func_test)(); in test_hugeshmctl()
307 .tcnt = ARRAY_SIZE(tcases),
/third_party/ltp/testcases/kernel/syscalls/unlink/
Dunlink07.c29 } 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),
/third_party/ltp/lib/newlib_tests/
Dtst_strstatus.c16 } 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),
/third_party/ltp/testcases/kernel/syscalls/mknod/
Dmknod01.c54 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()
/third_party/ltp/testcases/kernel/syscalls/open/
Dopen08.c62 } 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),
/third_party/ltp/testcases/kernel/syscalls/execve/
Dexecve03.c63 } 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),
/third_party/ltp/testcases/kernel/syscalls/rmdir/
Drmdir02.c40 } 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),
/third_party/ltp/testcases/kernel/syscalls/move_pages/
Dmove_pages12.c77 } 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 …]
/third_party/ltp/testcases/kernel/syscalls/fstatfs/
Dfstatfs01.c62 } 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()
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmat/
Dhugeshmat01.c48 } tcases[] = { variable
64 struct tcase *tc = &tcases[i]; in verify_hugeshmat()
131 orig_add = addr + ((unsigned long)tcases[i].addr % SHMLBA); in check_functionality()
132 if (orig_add != tcases[i].addr) { in check_functionality()
181 .tcnt = ARRAY_SIZE(tcases),
/third_party/ltp/testcases/kernel/syscalls/signal/
Dsignal01.c66 } 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()
/third_party/ltp/testcases/kernel/syscalls/fchmod/
Dfchmod06.c29 } 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),
/third_party/ltp/testcases/kernel/syscalls/fstat/
Dfstat03.c35 } 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),
/third_party/ltp/testcases/kernel/syscalls/nanosleep/
Dnanosleep04.c23 static struct timespec tcases[] = { variable
31 TEST(nanosleep(&tcases[n], NULL)); in verify_nanosleep()
50 .tcnt = ARRAY_SIZE(tcases),
/third_party/ltp/testcases/kernel/syscalls/quotactl/
Dquotactl06.c78 } tcases[] = { variable
94 struct tcase *tc = &tcases[n]; in verify_quotactl()
165 for (i = 0; i < ARRAY_SIZE(tcases); i++) { in setup()
166 if (!tcases[i].addr) in setup()
167 tcases[i].addr = tst_get_bad_addr(NULL); in setup()
179 .tcnt = ARRAY_SIZE(tcases),

12345678