Home
last modified time | relevance | path

Searched refs:tcase (Results 1 – 25 of 116) sorted by relevance

12345

/external/ltp/testcases/kernel/syscalls/clock_getres/
Dclock_getres01.c43 } tcase[] = { variable
60 TEST(clock_getres(tcase[i].clk_id, tcase[i].res)); in do_test()
62 if (TST_RET != tcase[i].ret) { in do_test()
64 tst_res(TCONF, "clock_getres(%s, ...) NO SUPPORTED", tcase[i].name); in do_test()
68 tst_res(TFAIL | TTERRNO, "clock_getres(%s, ...) failed", tcase[i].name); in do_test()
72 if (TST_ERR != tcase[i].err) { in do_test()
75 tcase[i].name, tst_strerrno(TST_ERR), tst_strerrno(tcase[i].err)); in do_test()
79 tst_res(TPASS, "clock_getres(%s, ...) succeeded", tcase[i].name); in do_test()
84 .tcnt = ARRAY_SIZE(tcase),
/external/ltp/testcases/kernel/syscalls/writev/
Dwritev01.c128 struct testcase_t *tcase = &testcases[i]; in test_writev() local
131 TEST(writev(*(tcase->pfd), *(tcase->piovec), tcase->iovcnt)); in test_writev()
133 ret = (TST_RET == tcase->exp_ret); in test_writev()
134 if (TST_RET < 0 || tcase->exp_ret < 0) { in test_writev()
135 ret &= (TST_ERR == tcase->exp_errno); in test_writev()
137 "%s, expected: %d (%s), got: %ld (%s)", tcase->desc, in test_writev()
138 tcase->exp_ret, tst_strerrno(tcase->exp_errno), in test_writev()
142 "%s, expected: %d, got: %ld", tcase->desc, in test_writev()
143 tcase->exp_ret, TST_RET); in test_writev()
/external/linux-kselftest/tools/testing/selftests/tc-testing/
Dtdc_helper.py58 def print_test_case(tcase): argument
60 print('\n==============\nTest {}\t{}\n'.format(tcase['id'], tcase['name']))
61 for k in tcase.keys():
62 if (isinstance(tcase[k], list)):
64 print_list(tcase[k])
67 print(k + ": " + str(tcase[k]))
/external/ltp/testcases/kernel/syscalls/signal/
Dsignal01.c63 static struct tcase { struct
78 static int tcase; argument
87 maybe_run_child(&do_child, "d", &tcase); in main()
112 tcase = tc; 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/syscalls/mbind/
Dmbind01.c58 static struct test_case tcase[] = { variable
134 struct test_case *tc = &tcase[i]; in test_default()
142 struct test_case *tc = &tcase[i]; in test_none()
149 struct test_case *tc = &tcase[i]; in test_invalid_nodemask()
177 struct test_case *tc = &tcase[i]; in do_test()
234 .tcnt = ARRAY_SIZE(tcase),
/external/ltp/testcases/kernel/syscalls/lgetxattr/
Dlgetxattr02.c53 } tcase[] = { variable
61 struct test_case *tc = tcase + n; in verify_lgetxattr()
101 .tcnt = ARRAY_SIZE(tcase),
/external/ltp/testcases/kernel/syscalls/access/
Daccess03.c37 static struct tcase { struct
48 static void access_test(struct tcase *tc, const char *user) in access_test() argument
71 struct tcase *tc = &tcases[n]; in verify_access()
Daccess04.c58 static struct tcase { struct
71 static void access_test(struct tcase *tc, const char *user) in access_test() argument
92 struct tcase *tc = tcases + n; in verify_access()
Daccess02.c55 static struct tcase { struct
71 static void access_test(struct tcase *tc, const char *user) in access_test() argument
163 struct tcase *tc = &tcases[n]; in verify_access()
/external/ltp/testcases/kernel/syscalls/setregid/
Dsetregid03.c24 struct tcase { struct
88 static void test_success(struct tcase *tc) in test_success()
98 static void test_failure(struct tcase *tc) in test_failure()
127 struct tcase *tc = &tcases[i]; in run()
Dsetregid01.c28 static struct tcase { struct
42 struct tcase *tc = &tcases[n]; in run() argument
/external/ltp/testcases/kernel/syscalls/ipc/msgsnd/
Dmsgsnd05.c44 static struct tcase { struct
54 static void verify_msgsnd(struct tcase *tc) in verify_msgsnd() argument
81 struct tcase *tc = &tcases[n]; in do_test()
Dmsgsnd02.c58 static struct tcase { struct
74 static void verify_msgsnd(struct tcase *tc) in verify_msgsnd() argument
93 struct tcase *tc = &tcases[n]; in do_test()
/external/ltp/testcases/kernel/syscalls/ipc/msgget/
Dmsgget02.c44 static struct tcase { struct
59 static void verify_msgget(struct tcase *tc) in verify_msgget() argument
79 struct tcase *tc = &tcases[n]; in do_test()
/external/ltp/testcases/kernel/syscalls/mq_unlink/
Dmq_unlink01.c42 static struct test_case tcase[] = { variable
86 struct test_case *tc = &tcase[i]; in do_test()
127 .tcnt = ARRAY_SIZE(tcase),
/external/ltp/testcases/kernel/syscalls/mkdir/
Dmkdir03.c48 struct tcase;
50 static struct tcase { struct
65 struct tcase *tc = TC + n; in verify_mkdir() argument
/external/ltp/testcases/kernel/syscalls/setpriority/
Dsetpriority02.c48 static struct tcase { struct
67 static void setpriority_test(struct tcase *tc) in setpriority_test() argument
99 struct tcase *tc = &tcases[n]; in verify_setpriority()
Dsetpriority01.c36 static struct tcase { struct
59 static void setpriority_test(struct tcase *tc) in setpriority_test() argument
93 struct tcase *tc = &tcases[n]; in verify_setpriority()
/external/ltp/testcases/kernel/syscalls/clock_nanosleep/
Dclock_nanosleep01.c57 static struct test_case tcase[] = { variable
99 struct test_case *tc = &tcase[i]; in do_test()
148 .tcnt = ARRAY_SIZE(tcase),
/external/ltp/testcases/kernel/syscalls/prctl/
Dprctl02.c19 static struct tcase { struct
30 struct tcase *tc = &tcases[n]; in verify_prctl() argument
/external/ltp/testcases/kernel/syscalls/flock/
Dflock01.c16 static struct tcase { struct
27 struct tcase *tc = &tcases[n]; in verify_flock() argument
/external/ltp/testcases/kernel/syscalls/getpriority/
Dgetpriority01.c32 static struct tcase { struct
44 struct tcase *tc = &tcases[n]; in verify_getpriority() argument
/external/ltp/testcases/kernel/syscalls/nanosleep/
Dnanosleep04.c47 static void verify_nanosleep(struct timespec *tcase) in verify_nanosleep() argument
49 TEST(nanosleep(tcase, NULL)); in verify_nanosleep()
/external/ltp/testcases/kernel/syscalls/mq_timedreceive/
Dmq_timedreceive01.c33 static struct test_case tcase[] = { variable
136 const struct test_case *tc = &tcase[i]; in do_test()
200 .tcnt = ARRAY_SIZE(tcase),
/external/ltp/testcases/kernel/syscalls/setrlimit/
Dsetrlimit02.c30 static struct tcase { struct
41 struct tcase *tc = &tcases[n]; in verify_setrlimit() argument

12345