Home
last modified time | relevance | path

Searched refs:tcases (Results 1 - 25 of 292) sorted by relevance

12345678910>>...12

/third_party/ltp/testcases/kernel/syscalls/remap_file_pages/
H A 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[ in run()
[all...]
/third_party/ltp/testcases/kernel/syscalls/ioperm/
H A Dioperm02.c41 } tcases[] = { variable
48 tcases[0].from = (IO_BITMAP_BITS_16 - NUM_BYTES) + 1; in setup()
49 tcases[1].from = IO_BITMAP_BITS_16 - NUM_BYTES; in setup()
63 TEST(ioperm(tcases[i].from, tcases[i].num, tcases[i].turn_on)); in verify_ioperm()
65 if ((TST_RET == -1) && (TST_ERR == tcases[i].exp_errno)) { in verify_ioperm()
67 "errno: %d", tcases[i].desc, TST_ERR); in verify_ioperm()
71 "(expected errno %d)", tcases[i].desc, in verify_ioperm()
72 TST_RET, TST_ERR, tcases[ in verify_ioperm()
[all...]
/third_party/ltp/testcases/kernel/syscalls/add_key/
H A 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/
H A 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[ in bad_addr_setup()
[all...]
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmget/
H A Dhugeshmget02.c27 } tcases[] = { variable
43 if (*tcases[i].skey == -1) { in test_hugeshmget()
44 shm_id_2 = shmget(*(tcases[i].skey), 0, 0); in test_hugeshmget()
49 TEST(shmget(*(tcases[i].skey), tcases[i].size_coe * shm_size, in test_hugeshmget()
50 tcases[i].flags)); in test_hugeshmget()
56 if (TST_ERR != tcases[i].error) { in test_hugeshmget()
59 tst_strerrno(tcases[i].error)); in test_hugeshmget()
100 .tcnt = ARRAY_SIZE(tcases),
/third_party/ltp/testcases/kernel/syscalls/iopl/
H A Diopl02.c32 } tcases[] = { variable
39 TEST(iopl(tcases[i].level)); in verify_iopl()
41 if ((TST_RET == -1) && (TST_ERR == tcases[i].exp_errno)) { in verify_iopl()
44 tcases[i].desc, TST_ERR); in verify_iopl()
48 tcases[i].desc, TST_RET, tst_strerrno(tcases[i].exp_errno)); in verify_iopl()
66 .tcnt = ARRAY_SIZE(tcases),
/third_party/ltp/testcases/kernel/syscalls/timer_create/
H A 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/mknod/
H A Dmknod01.c20 static int tcases[] = { variable
36 if (S_ISCHR(tcases[i]) || S_ISBLK(tcases[i])) in run()
39 TST_EXP_PASS(mknod(PATH, tcases[i], dev), in run()
41 tcases[i], dev); in run() local
47 .tcnt = ARRAY_SIZE(tcases),
/third_party/ltp/testcases/kernel/syscalls/statvfs/
H A Dstatvfs02.c35 } tcases[] = { variable
53 for (i = 0; i < ARRAY_SIZE(tcases); i++) { in setup()
54 if (tcases[i].path == (char *)-1) in setup()
55 tcases[i].path = tst_get_bad_addr(NULL); in setup()
61 struct tcase *tc = &tcases[i]; in run()
69 .tcnt = ARRAY_SIZE(tcases),
/third_party/ltp/testcases/kernel/syscalls/unlink/
H A Dunlink07.c33 } tcases[] = { variable
44 struct test_case_t *tc = &tcases[n]; in verify_unlink()
57 for (n = 0; n < ARRAY_SIZE(tcases); n++) { in setup()
58 if (!tcases[n].name) in setup()
59 tcases[n].name = tst_get_bad_addr(NULL); in setup()
66 .tcnt = ARRAY_SIZE(tcases),
/third_party/ltp/testcases/kernel/syscalls/sysfs/
H A Dsysfs05.c22 } tcases[] = { variable
31 struct test_case *tc = &tcases[nr]; in verify_sysfs05()
50 for (i = 0; i < ARRAY_SIZE(tcases); i++) { in setup()
51 if (tcases[i].exp_errno == EFAULT) in setup()
52 tcases[i].fsname = bad_addr; in setup()
58 .tcnt = ARRAY_SIZE(tcases),
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmctl/
H A Dhugeshmctl03.c52 } tcases[] = { variable
83 for (i = 0; i < ARRAY_SIZE(tcases); i++) { in do_child()
84 TEST(shmctl(*(tcases[i].shmid), tcases[i].cmd, tcases[i].sbuf)); in do_child()
90 if (TST_ERR == tcases[i].error) in do_child()
96 "%d, got", tcases[i].error); in do_child()
H A Dhugeshmctl02.c43 } tcases[] = { variable
79 if (tcases[i].error == EFAULT && tv->shmctl == libc_shmctl) { in test_hugeshmctl()
84 TEST(tv->shmctl(*(tcases[i].shmid), tcases[i].cmd, tcases[i].sbuf)); in test_hugeshmctl()
90 if (TST_ERR == tcases[i].error) { in test_hugeshmctl()
97 tcases[i].error); in test_hugeshmctl()
137 .tcnt = ARRAY_SIZE(tcases),
/third_party/ltp/testcases/kernel/syscalls/fanotify/
H A Dfanotify11.c52 static unsigned int tcases[] = { variable
65 i, (tcases[i] & FAN_REPORT_TID) ? "with" : "without", in test01()
68 if (fan_report_tid_unsupported && (tcases[i] & FAN_REPORT_TID)) { in test01()
73 fd_notify = SAFE_FANOTIFY_INIT(tcases[i], 0); in test01()
82 if ((tcases[i] & FAN_REPORT_TID) && event.pid == tid) in test01()
84 else if (!(tcases[i] & FAN_REPORT_TID) && event.pid == tgid) in test01()
103 .tcnt = ARRAY_SIZE(tcases),
/third_party/ltp/testcases/kernel/syscalls/ioctl/
H A Dioctl01.c45 } tcases[] = { variable
62 TST_EXP_FAIL(ioctl(*(tcases[i].fd), tcases[i].request, tcases[i].s_tio), in verify_ioctl()
63 tcases[i].error, "%s", tcases[i].desc); in verify_ioctl()
90 .tcnt = ARRAY_SIZE(tcases)
/third_party/ltp/testcases/kernel/syscalls/move_pages/
H A Dmove_pages12.c88 } tcases[] = { variable
157 addr = SAFE_MMAP(NULL, tcases[n].tpages * hpsz, PROT_READ | PROT_WRITE, in do_test()
160 SAFE_MUNMAP(addr, tcases[n].tpages * hpsz); in do_test()
164 do_child(tcases[n].tpages); in do_test()
167 ptr = mmap(NULL, tcases[n].tpages * hpsz, in do_test()
183 memset(addr, 0, tcases[n].tpages * hpsz); in do_test()
185 if (tcases[n].offline) { in do_test()
186 ret = do_soft_offline(tcases[n].tpages); in do_test()
191 SAFE_MUNMAP(addr, tcases[n].tpages * hpsz); in do_test()
198 SAFE_MUNMAP(addr, tcases[ in do_test()
[all...]
/third_party/ltp/lib/newlib_tests/
H A Dtst_strstatus.c17 } tcases[] = { variable
27 const char *str_status = tst_strstatus(tcases[n].status); in do_test()
29 if (strcmp(str_status, tcases[n].str)) in do_test()
30 tst_res(TFAIL, "%s != %s", str_status, tcases[n].str); in do_test()
37 .tcnt = ARRAY_SIZE(tcases),
/third_party/ltp/testcases/kernel/syscalls/chdir/
H A Dchdir04.c21 } tcases[] = { variable
29 TST_EXP_FAIL(chdir(tcases[i].dir), tcases[i].exp_errno, "chdir()"); in verify_chdir()
34 tcases[2].dir = tst_get_bad_addr(NULL); in setup()
40 .tcnt = ARRAY_SIZE(tcases),
/third_party/ltp/testcases/kernel/syscalls/open/
H A Dopen08.c41 } tcases[] = { variable
52 TST_EXP_FAIL2(open(*tcases[i].fname, tcases[i].flags, 0644), in verify_open()
53 tcases[i].error, "%s", tcases[i].desc); in verify_open()
78 .tcnt = ARRAY_SIZE(tcases),
/third_party/ltp/testcases/kernel/syscalls/readdir/
H A Dreaddir21.c39 } tcases[] = { variable
60 for (i = 0; i < ARRAY_SIZE(tcases); i++) { in setup()
61 if (tcases[i].exp_errno == EFAULT) in setup()
62 tcases[i].dirp = tst_get_bad_addr(NULL); in setup()
68 struct tcase *tc = &tcases[nr]; in verify_readdir()
75 .tcnt = ARRAY_SIZE(tcases),
/third_party/ltp/testcases/kernel/syscalls/syslog/
H A Dsyslog12.c56 } tcases[] = { variable
67 struct tcase *tc = &tcases[n]; in run()
69 if (n == ARRAY_SIZE(tcases)-1) in run()
75 if (n == ARRAY_SIZE(tcases)-1) in run()
83 .tcnt = ARRAY_SIZE(tcases),
/third_party/ltp/testcases/kernel/syscalls/rmdir/
H A 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/execve/
H A 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/finit_module/
H A Dfinit_module02.c61 static struct tcase tcases[] = { variable
92 for (i = 0; i < ARRAY_SIZE(tcases); i++) { in setup()
93 if (tcases[i].fix_errno) in setup()
94 tcases[i].fix_errno(&tcases[i]); in setup()
105 struct tcase *tc = &tcases[n]; in run()
143 .tcnt = ARRAY_SIZE(tcases),
/third_party/ltp/testcases/kernel/syscalls/reboot/
H A Dreboot01.c27 } tcases[] = { variable
34 TST_EXP_PASS(reboot(tcases[n].cmd), "reboot(%s)", tcases[n].desc); in run()
40 .tcnt = ARRAY_SIZE(tcases),

Completed in 7 milliseconds

12345678910>>...12