/external/ltp/testcases/kernel/syscalls/listen/ |
listen01.c | 75 } tdat[] = { variable in typeref:struct:test_case_t 82 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]); 95 tdat[testno].setup(); 97 TEST(listen(s, tdat[testno].backlog)); 98 if (TEST_RETURN != tdat[testno].retval || 100 TEST_ERRNO != tdat[testno].experrno)) { 103 " %d)", tdat[testno].desc, 104 TEST_RETURN, tdat[testno].retval, 105 TEST_ERRNO, tdat[testno].experrno) [all...] |
/external/ltp/testcases/kernel/syscalls/fdatasync/ |
fdatasync02.c | 101 static struct test_case_t tdat[] = { variable in typeref:struct:test_case_t 106 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]); 121 if ((tdat[testno].setup) && (tdat[testno].setup())) { 129 (TEST_ERRNO == tdat[testno].experrno)) { 131 "errno: %d", tdat[testno].desc, 136 "(expected %d)", tdat[testno].desc, 138 TEST_ERRNO, tdat[testno].experrno); 140 if (tdat[testno].cleanup) [all...] |
/external/ltp/testcases/kernel/module/query_module/ |
query_module03.c | 128 static struct test_case_t tdat[] = { variable in typeref:struct:test_case_t 149 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]); 166 if ((tdat[testno].setup) && (tdat[testno].setup())) { 170 TEST(query_module(tdat[testno].modname, 171 tdat[testno].which, tdat[testno].buf, 172 tdat[testno].bufsize, 173 tdat[testno].ret_size)) [all...] |
query_module02.c | 115 static struct test_case_t tdat[] = { variable in typeref:struct:test_case_t 138 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]); 154 TEST(query_module(tdat[testno].modname, 155 tdat[testno].which, tdat[testno].buf, 156 tdat[testno].bufsize, &ret_size)); 158 (TEST_ERRNO == tdat[testno].experrno)) { 160 tdat[testno].desc, TEST_ERRNO); 164 " %d)", tdat[testno].desc [all...] |
query_module01.c | 133 static struct test_case_t tdat[] = { variable in typeref:struct:test_case_t 152 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]); 169 if ((tdat[testno].setup) && (tdat[testno].setup())) { 174 TEST(query_module(tdat[testno].modname, 175 tdat[testno].which, (void *)out_buf, 179 !test_functionality(tdat[testno].which, 182 "for %s", tdat[testno].desc); 187 " 0)", tdat[testno].desc [all...] |
/external/ltp/testcases/kernel/syscalls/syslog/ |
syslog11.c | 98 static struct test_case_t tdat[] = { variable in typeref:struct:test_case_t 116 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]); 131 if (tdat[testno].setup && tdat[testno].setup()) { 136 TEST(syslog(tdat[testno].type, tdat[testno].buf, 137 tdat[testno].len)); 143 tdat[testno].desc); 147 "%d (%s)", tdat[testno].desc [all...] |
syslog12.c | 110 static struct test_case_t tdat[] = { variable in typeref:struct:test_case_t 119 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]); 124 " for %s", tdat[testno].desc); 148 if (tdat[testno].setup && tdat[testno].setup()) { 155 TEST(syslog(tdat[testno].type, tdat[testno].buf, 156 tdat[testno].len)); 163 (TEST_ERRNO == tdat[testno].exp_errno)) [all...] |
/external/ltp/testcases/kernel/syscalls/getsockname/ |
getsockname01.c | 77 } tdat[] = { variable in typeref:struct:test_case_t 102 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]); 115 tdat[testno].setup(); 117 TEST(getsockname(s, tdat[testno].sockaddr, 118 tdat[testno].salen)); 119 if (TEST_RETURN != tdat[testno].retval || 121 TEST_ERRNO != tdat[testno].experrno)) { 124 " %d)", tdat[testno].desc, 125 TEST_RETURN, tdat[testno].retval [all...] |
/external/ltp/testcases/kernel/module/delete_module/ |
delete_module02.c | 69 } tdat[] = { variable in typeref:struct:test_case_t 78 int TST_TOTAL = ARRAY_SIZE(tdat); 93 if (tdat[i].setup) 94 tdat[i].setup(); 96 tst_resm(TINFO, "test %s", tdat[i].desc); 98 tdat[i].modname, 0)); 103 } else if (TEST_ERRNO == tdat[i].experrno) { 109 "%d - %s", tdat[i].experrno, 110 strerror(tdat[i].experrno)); 112 if (tdat[i].cleanup [all...] |
/external/ltp/testcases/kernel/syscalls/getsockopt/ |
getsockopt01.c | 83 } tdat[] = { variable in typeref:struct:test_case_t 127 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]); 140 tdat[testno].setup(); 142 TEST(getsockopt(s, tdat[testno].level, 143 tdat[testno].optname, 144 tdat[testno].optval, 145 tdat[testno].optlen)); 146 if (TEST_RETURN != tdat[testno].retval || 148 TEST_ERRNO != tdat[testno].experrno)) [all...] |
/external/ltp/testcases/kernel/syscalls/setsockopt/ |
setsockopt01.c | 83 } tdat[] = { variable in typeref:struct:test_case_t 129 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]); 141 tdat[testno].setup(); 143 TEST(setsockopt(s, tdat[testno].level, 144 tdat[testno].optname, 145 tdat[testno].optval, 146 tdat[testno].optlen)); 151 if (TEST_RETURN != tdat[testno].retval || 153 TEST_ERRNO != tdat[testno].experrno)) [all...] |
/external/ltp/testcases/kernel/syscalls/setresgid/ |
setresgid01.c | 102 static struct test_case_t tdat[] = { variable in typeref:struct:test_case_t 115 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]); 131 TEST(SETRESGID(cleanup, *tdat[testno].rgid, *tdat[testno].egid, 132 *tdat[testno].sgid)); 136 (tdat[testno].exp_rgid->pw_gid, 137 tdat[testno].exp_egid->pw_gid, 138 tdat[testno].exp_sgid->pw_gid)) { 142 tdat[testno].desc) [all...] |
setresgid03.c | 107 static struct test_case_t tdat[] = { variable in typeref:struct:test_case_t 114 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]); 130 TEST(SETRESGID(cleanup, *tdat[testno].rgid, *tdat[testno].egid, 131 *tdat[testno].sgid)); 137 (tdat[testno].exp_rgid->pw_gid, 138 tdat[testno].exp_egid->pw_gid, 139 tdat[testno].exp_sgid->pw_gid)) {
|