Home
last modified time | relevance | path

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

12345

/external/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 …]
/external/ltp/testcases/kernel/syscalls/creat/
Dcreat06.c89 } tcases[] = { variable
104 if (tcases[i].setup != NULL) in verify_creat()
105 tcases[i].setup(i); in verify_creat()
107 TEST(creat(tcases[i].fname, tcases[i].mode)); in verify_creat()
109 if (tcases[i].cleanup != NULL) in verify_creat()
110 tcases[i].cleanup(); in verify_creat()
117 if (TST_ERR == tcases[i].error) { in verify_creat()
123 tst_strerrno(tcases[i].error)); in verify_creat()
146 if (tcases[i].fname) in bad_addr_setup()
149 tcases[i].fname = SAFE_MMAP(0, 1, PROT_NONE, in bad_addr_setup()
[all …]
Dcreat04.c40 } tcases[] = { variable
49 TEST(creat(tcases[i].fname, 0444)); in child_fn()
52 SAFE_UNLINK(tcases[i].fname); in child_fn()
85 .tcnt = ARRAY_SIZE(tcases),
/external/ltp/testcases/kernel/syscalls/add_key/
Dadd_key02.c45 } tcases[] = { variable
63 TEST(add_key(tcases[i].type, in verify_add_key()
64 "abc:def", NULL, tcases[i].plen, KEY_SPEC_PROCESS_KEYRING)); in verify_add_key()
69 tcases[i].type); in verify_add_key()
75 tcases[i].type); in verify_add_key()
81 tcases[i].type); in verify_add_key()
90 if (TST_ERR == EBADMSG && !strcmp(tcases[i].type, "asymmetric")) { in verify_add_key()
96 tcases[i].type); in verify_add_key()
100 .tcnt = ARRAY_SIZE(tcases),
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmget/
Dhugeshmget02.c45 } 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()
118 .tcnt = ARRAY_SIZE(tcases),
/external/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),
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmctl/
Dhugeshmctl02.c58 } 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()
Dhugeshmctl03.c68 } 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()
Dhugeshmctl01.c78 } 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/unlink/
Dunlink07.c41 } tcases[] = { variable
52 struct test_case_t *tc = &tcases[n]; in verify_unlink()
79 for (n = 0; n < ARRAY_SIZE(tcases); n++) { in setup()
80 if (!tcases[n].name) in setup()
81 tcases[n].name = tst_get_bad_addr(NULL); in setup()
88 .tcnt = ARRAY_SIZE(tcases),
/external/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()
/external/ltp/lib/newlib_tests/
Dtst_strstatus.c28 } tcases[] = { variable
38 const char *str_status = tst_strstatus(tcases[n].status); in do_test()
40 if (strcmp(str_status, tcases[n].str)) in do_test()
41 tst_res(TFAIL, "%s != %s", str_status, tcases[n].str); in do_test()
48 .tcnt = ARRAY_SIZE(tcases),
/external/ltp/testcases/kernel/syscalls/open/
Dopen08.c75 } tcases[] = { variable
86 TEST(open(*tcases[i].fname, tcases[i].flags, in verify_open()
94 if (TST_ERR == tcases[i].error) { in verify_open()
101 strerror(TST_ERR), tcases[i].error); in verify_open()
127 .tcnt = ARRAY_SIZE(tcases),
/external/ltp/testcases/kernel/syscalls/execve/
Dexecve03.c83 } tcases[] = { variable
125 for (i = 0; i < ARRAY_SIZE(tcases); i++) { in setup()
126 if (!tcases[i].tname) in setup()
127 tcases[i].tname = tst_get_bad_addr(NULL); in setup()
133 struct tcase *tc = &tcases[i]; in verify_execve()
153 .tcnt = ARRAY_SIZE(tcases),
/external/ltp/testcases/kernel/syscalls/rmdir/
Drmdir02.c52 } tcases[] = { variable
75 for (i = 0; i < ARRAY_SIZE(tcases); i++) { in setup()
76 if (!tcases[i].dir) in setup()
77 tcases[i].dir = tst_get_bad_addr(NULL); in setup()
93 struct testcase *tc = &tcases[n]; in verify_rmdir()
115 .tcnt = ARRAY_SIZE(tcases),
/external/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()
/external/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()
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmat/
Dhugeshmat01.c61 } 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()
197 .tcnt = ARRAY_SIZE(tcases),
/external/ltp/testcases/kernel/syscalls/fchmod/
Dfchmod06.c42 } tcases[] = { variable
50 struct tcase *tc = &tcases[i]; in verify_fchmod()
60 if (TST_ERR == tcases[i].exp_errno) { in verify_fchmod()
95 .tcnt = ARRAY_SIZE(tcases),
/external/ltp/testcases/kernel/syscalls/madvise/
Dmadvise02.c77 } tcases[] = { variable
97 for (i = 0; i < ARRAY_SIZE(tcases); i++) { in tcases_filter()
98 struct tcase *tc = &tcases[i]; in tcases_filter()
179 struct tcase *tc = &tcases[i]; in advice_test()
211 .tcnt = ARRAY_SIZE(tcases),
/external/ltp/testcases/kernel/syscalls/prctl/
Dprctl02.c23 } tcases[] = { variable
30 struct tcase *tc = &tcases[n]; in verify_prctl()
47 .tcnt = ARRAY_SIZE(tcases),
/external/ltp/testcases/kernel/syscalls/flock/
Dflock01.c19 } tcases[] = { variable
27 struct tcase *tc = &tcases[n]; in verify_flock()
51 .tcnt = ARRAY_SIZE(tcases),
/external/ltp/testcases/kernel/syscalls/getpriority/
Dgetpriority01.c36 } tcases[] = { variable
44 struct tcase *tc = &tcases[n]; in verify_getpriority()
66 .tcnt = ARRAY_SIZE(tcases),
/external/ltp/testcases/kernel/syscalls/nanosleep/
Dnanosleep04.c37 static struct timespec tcases[] = { variable
43 int TST_TOTAL = ARRAY_SIZE(tcases);
75 verify_nanosleep(&tcases[i]); in main()
/external/ltp/testcases/kernel/syscalls/getcwd/
Dgetcwd01.c47 } tcases[] = { variable
57 struct t_case *tc = &tcases[n]; in verify_getcwd()
78 .tcnt = ARRAY_SIZE(tcases),

12345