HomeSort by relevance Sort by last modified time
    Searched refs:tc (Results 51 - 75 of 886) sorted by null

1 23 4 5 6 7 8 91011>>

  /external/ltp/testcases/kernel/syscalls/memfd_create/
memfd_create02.c 78 const struct tcase *tc; local
81 tc = &tcases[n];
82 needed_flags = tc->flags & FLAGS_ALL_MASK;
86 tc->descr);
90 TEST(sys_memfd_create(tc->memfd_name, tc->flags));
91 if (TEST_ERRNO != tc->memfd_create_exp_err)
92 tst_brk(TFAIL, "test '%s'", tc->descr);
94 tst_res(TPASS, "test '%s'", tc->descr);
  /external/ltp/testcases/kernel/syscalls/removexattr/
removexattr02.c 50 } tc[] = { variable in typeref:struct:test_case
59 static void verify_removexattr(struct test_case *tc);
63 int TST_TOTAL = ARRAY_SIZE(tc);
77 verify_removexattr(&tc[i]);
84 static void verify_removexattr(struct test_case *tc)
87 TEST(removexattr(tc->path, tc->name));
98 if (TEST_ERRNO != tc->exp_err) {
100 " expected %s", tst_strerrno(tc->exp_err));
  /external/ltp/testcases/kernel/syscalls/ustat/
ustat02.c 51 } tc[] = { variable in typeref:struct:test_case_t
58 int TST_TOTAL = ARRAY_SIZE(tc);
73 TEST(ustat(*tc[i].dev, tc[i].buf));
79 && (TEST_ERRNO == tc[i].exp_errno)) {
83 tc[i].exp_errval, tc[i].err_desc);
89 tc[i].exp_errno, tc[i].exp_errval);
  /build/kati/
strutil_test.go 24 for _, tc := range []struct {
49 got := splitSpaces(tc.in)
50 if !reflect.DeepEqual(got, tc.want) {
51 t.Errorf(`splitSpaces(%q)=%q, want %q`, tc.in, got, tc.want)
57 for _, tc := range []struct {
82 ws := newWordScanner([]byte(tc.in))
87 if !reflect.DeepEqual(got, tc.want) {
88 t.Errorf(`wordScanner(%q)=%q, want %q`, tc.in, got, tc.want
    [all...]
  /external/ltp/testcases/kernel/syscalls/getxattr/
getxattr01.c 73 struct test_case tc[] = { variable in typeref:struct:test_case
97 int TST_TOTAL = sizeof(tc) / sizeof(tc[0]) + 1;
111 for (i = 0; i < ARRAY_SIZE(tc); i++) {
112 TEST(getxattr(tc[i].fname, tc[i].key, tc[i].value,
113 tc[i].size));
115 if (TEST_ERRNO == tc[i].exp_err) {
120 tc[i].exp_err)
    [all...]
  /external/ltp/testcases/kernel/syscalls/epoll_wait/
epoll_wait03.c 59 } tc[] = { variable in typeref:struct:test_case_t
73 int TST_TOTAL = ARRAY_SIZE(tc);
76 static void verify_epoll_wait(struct test_case_t *tc);
91 verify_epoll_wait(&tc[i]);
125 static void verify_epoll_wait(struct test_case_t *tc)
127 TEST(epoll_wait(*(tc->epfd), *(tc->ev), tc->maxevents, -1));
131 if (tc->exp_errno == TEST_ERRNO) {
137 "expected %d: %s", tc->exp_errno
    [all...]
  /external/ltp/testcases/kernel/syscalls/lseek/
lseek02.c 71 struct tcase *tc = &tcases[n]; local
73 TEST(lseek(*tc->fd, (off_t) 1, tc->whence));
76 *tc->fd, tc->whence);
80 if (TEST_ERRNO == tc->exp_err) {
82 *tc->fd, tc->whence);
85 "unexpectedly, expected %s", *tc->fd, tc->whence
    [all...]
  /external/ltp/testcases/kernel/syscalls/preadv/
preadv01.c 57 struct tcase *tc = &tcases[n]; local
64 TEST(preadv(fd, rd_iovec, tc->count, tc->offset));
70 if (TEST_RETURN != tc->size) {
72 TEST_RETURN, tc->size);
76 for (i = 0; i < tc->size; i++) {
77 if (vec[i] != tc->content)
81 if (i < tc->size) {
83 i, vec[i], tc->content);
93 "with content '%c' expectedly", tc->size, tc->content)
    [all...]
  /external/libnl/src/
nl-class-delete.c 71 struct rtnl_tc *tc; local
78 tc = (struct rtnl_tc *) class;
110 case 'd': nl_cli_tc_parse_dev(tc, link_cache, optarg); break;
111 case 'p': nl_cli_tc_parse_parent(tc, optarg); break;
112 case 'i': nl_cli_tc_parse_handle(tc, optarg, 0); break;
113 case 'k': nl_cli_tc_parse_kind(tc, optarg); break;
117 if (!rtnl_tc_get_ifindex(tc))
120 class_cache = nl_cli_class_alloc_cache(sock, rtnl_tc_get_ifindex(tc));
nl-class-list.c 13 #include <netlink/cli/tc.h>
65 struct rtnl_tc *tc; local
73 tc = (struct rtnl_tc *) class;
104 case 'd': nl_cli_tc_parse_dev(tc, link_cache, optarg); break;
105 case 'p': nl_cli_tc_parse_parent(tc, optarg); break;
106 case 'i': nl_cli_tc_parse_handle(tc, optarg, 0); break;
107 case 'k': nl_cli_tc_parse_kind(tc, optarg); break;
111 if ((ifindex = rtnl_tc_get_ifindex(tc)))
nl-qdisc-list.c 13 #include <netlink/cli/tc.h>
57 struct rtnl_tc *tc = nl_object_priv(obj); local
60 list_classes(rtnl_tc_get_ifindex(tc), rtnl_tc_get_handle(tc));
61 list_qdiscs(rtnl_tc_get_ifindex(tc), rtnl_tc_get_handle(tc));
96 struct rtnl_tc *tc = (struct rtnl_tc *) qdisc; local
100 list_cls(rtnl_tc_get_ifindex(tc), rtnl_tc_get_handle(tc));
102 if (rtnl_tc_get_parent(tc) == TC_H_ROOT)
130 struct rtnl_tc *tc; local
    [all...]
  /external/ltp/testcases/kernel/syscalls/ipc/msgsnd/
msgsnd05.c 54 static void verify_msgsnd(struct tcase *tc)
56 TEST(msgsnd(queue_id, &snd_buf, MSGSIZE, tc->flag));
62 if (TEST_ERRNO == tc->exp_err) {
66 " expected %s", tst_strerrno(tc->exp_err));
81 struct tcase *tc = &tcases[n]; local
83 if (tc->exp_user == 0) {
84 verify_msgsnd(tc);
91 verify_msgsnd(tc);
msgsnd02.c 74 static void verify_msgsnd(struct tcase *tc)
76 TEST(msgsnd(*tc->id, tc->buffer, tc->msgsz, 0));
82 if (TEST_ERRNO == tc->exp_err) {
86 " expected %s", tst_strerrno(tc->exp_err));
93 struct tcase *tc = &tcases[n]; local
95 if (tc->exp_user == 0) {
96 verify_msgsnd(tc);
105 verify_msgsnd(tc);
    [all...]
  /external/ltp/testcases/kernel/syscalls/open/
open01.c 58 struct tcase *tc = &tcases[n]; local
61 TEST(open(tc->filename, tc->flag, tc->mode));
69 if (!(buf.st_mode & tc->tst_bit))
70 tst_res(TFAIL, "%s is cleared unexpectedly", tc->desc);
72 tst_res(TPASS, "%s is set as expected", tc->desc);
76 SAFE_UNLINK(tc->filename);
  /external/ltp/testcases/kernel/syscalls/vmsplice/
vmsplice02.c 83 struct tcase *tc = &tcases[n]; local
85 TEST(vmsplice(*(tc->fd), tc->iov, tc->nr_segs, 0));
90 tc->exp_errno);
94 if (TEST_ERRNO != tc->exp_errno) {
97 tc->exp_errno, tst_strerrno(tc->exp_errno));
  /external/ltp/testcases/realtime/func/thread_clock/
run_auto.sh 14 $SCRIPTS_DIR/run_c_files.sh $profile tc-2
  /external/testng/src/main/java/org/testng/remote/adapter/
RemoteResultListener.java 53 ITestContext tc = suiteResult.getTestContext(); local
54 TestHTMLReporter.generateLog(tc, remoteSuiteRunner.getHost(),
56 tc.getFailedConfigurations().getAllResults(),
57 tc.getSkippedConfigurations().getAllResults(),
58 tc.getPassedTests().getAllResults(),
59 tc.getFailedTests().getAllResults(),
60 tc.getSkippedTests().getAllResults(),
61 tc.getFailedButWithinSuccessPercentageTests().getAllResults());
  /external/testng/src/test/java/test/regression/
MyTestngTest.java 10 public void beforeSuite(ITestContext tc) throws Exception {
14 public void beforeTest(ITestContext tc) throws Exception {
  /external/ltp/testcases/kernel/syscalls/madvise/
madvise02.c 88 struct tcase *tc = &tcases[i]; local
90 switch (tc->advice) {
95 tc->skip = 0;
102 tc->skip = 1;
107 tc->skip = 1;
114 tc->exp_errno == EBADF)
115 tc->skip = 1;
154 struct tcase *tc = &tcases[i]; local
156 if (tc->skip == 1) {
157 tst_res(TCONF, "%s is not supported", tc->name)
    [all...]
  /external/libnl/lib/route/qdisc/
ingress.c 20 #include <netlink-private/tc.h>
22 #include <netlink-private/route/tc-api.h>
30 static int dumb_msg_parser(struct rtnl_tc *tc, void *data)
35 static void dumb_dump_line(struct rtnl_tc *tc, void *data,
40 static int dumb_msg_fill(struct rtnl_tc *tc, void *data, struct nl_msg *msg)
  /external/ltp/testcases/kernel/syscalls/getcwd/
getcwd01.c 57 struct t_case *tc = &tcases[n]; local
61 res = getcwd(tc->buf, tc->size);
68 if (TEST_ERRNO != tc->exp_err) {
70 tst_strerrno(tc->exp_err));
  /external/ltp/testcases/kernel/syscalls/mbind/
mbind01.c 134 struct test_case *tc = &tcase[i]; local
136 TEST(mbind(p, MEM_LENGTH, tc->policy, nodemask->maskp,
137 nodemask->size, tc->flags));
142 struct test_case *tc = &tcase[i]; local
144 TEST(mbind(p, MEM_LENGTH, tc->policy, NULL, 0, tc->flags));
149 struct test_case *tc = &tcase[i]; local
152 TEST(mbind(p, MEM_LENGTH, tc->policy, sbrk(0) + 64*1024*1024,
153 NUMA_NUM_NODES, tc->flags));
177 struct test_case *tc = &tcase[i] local
    [all...]
  /external/ltp/testcases/kernel/syscalls/mq_timedreceive/
mq_timedreceive01.c 136 const struct test_case *tc = &tcase[i]; local
143 if (tc->signal)
144 pid = set_sig(tc->rq);
146 if (tc->timeout)
147 set_timeout(tc->rq);
149 if (tc->send)
150 send_msg(*tc->fd, tc->len, tc->prio);
152 if (tc->invalid_msg
    [all...]
  /external/ltp/testcases/kernel/syscalls/setrlimit/
setrlimit02.c 41 struct tcase *tc = &tcases[n]; local
43 TEST(setrlimit(tc->resource, tc->rlim));
50 if (TEST_ERRNO != tc->exp_errno) {
53 tst_strerrno(tc->exp_errno));
  /external/ltp/testcases/kernel/syscalls/mkdir/
mkdir03.c 49 static void prot_none_pathname(struct tcase *tc);
54 void (*setupfunc)(struct tcase *tc);
55 } TC[] = {
67 struct tcase *tc = TC + n; local
69 TEST(mkdir(tc->pathname, MODE));
72 TEST_RETURN, tc->exp_errno);
76 if (TEST_ERRNO == tc->exp_errno) {
81 tc->exp_errno, strerror(tc->exp_errno))
    [all...]

Completed in 718 milliseconds

1 23 4 5 6 7 8 91011>>