/external/ltp/testcases/kernel/syscalls/clock_getres/ |
D | clock_getres01.c | 43 } 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/ |
D | writev01.c | 128 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/ |
D | tdc_helper.py | 58 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/ |
D | signal01.c | 63 static struct tcase { struct 78 static int tcase; variable 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/ |
D | mbind01.c | 58 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/ |
D | lgetxattr02.c | 53 } tcase[] = { variable 61 struct test_case *tc = tcase + n; in verify_lgetxattr() 101 .tcnt = ARRAY_SIZE(tcase),
|
/external/ltp/testcases/kernel/syscalls/access/ |
D | access03.c | 37 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()
|
D | access04.c | 58 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()
|
D | access02.c | 55 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/ |
D | setregid03.c | 24 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()
|
D | setregid01.c | 28 static struct tcase { struct 42 struct tcase *tc = &tcases[n]; in run() argument
|
/external/ltp/testcases/kernel/syscalls/ipc/msgsnd/ |
D | msgsnd05.c | 44 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()
|
D | msgsnd02.c | 58 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/ |
D | msgget02.c | 44 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/ |
D | mq_unlink01.c | 42 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/ |
D | mkdir03.c | 48 struct tcase; 50 static struct tcase { struct 65 struct tcase *tc = TC + n; in verify_mkdir() argument
|
/external/ltp/testcases/kernel/syscalls/setpriority/ |
D | setpriority02.c | 48 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()
|
D | setpriority01.c | 36 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/ |
D | clock_nanosleep01.c | 57 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/ |
D | prctl02.c | 19 static struct tcase { struct 30 struct tcase *tc = &tcases[n]; in verify_prctl() argument
|
/external/ltp/testcases/kernel/syscalls/flock/ |
D | flock01.c | 16 static struct tcase { struct 27 struct tcase *tc = &tcases[n]; in verify_flock() argument
|
/external/ltp/testcases/kernel/syscalls/getpriority/ |
D | getpriority01.c | 32 static struct tcase { struct 44 struct tcase *tc = &tcases[n]; in verify_getpriority() argument
|
/external/ltp/testcases/kernel/syscalls/nanosleep/ |
D | nanosleep04.c | 47 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/ |
D | mq_timedreceive01.c | 33 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/ |
D | setrlimit02.c | 30 static struct tcase { struct 41 struct tcase *tc = &tcases[n]; in verify_setrlimit() argument
|