/external/libnl/lib/cli/qdisc/ |
bfifo.c | 13 #include <netlink/cli/tc.h> 30 static void bfifo_parse_argv(struct rtnl_tc *tc, int argc, char **argv) 32 struct rtnl_qdisc *qdisc = (struct rtnl_qdisc *) tc;
|
pfifo.c | 14 #include <netlink/cli/tc.h> 31 static void pfifo_parse_argv(struct rtnl_tc *tc, int argc, char **argv) 33 struct rtnl_qdisc *qdisc = (struct rtnl_qdisc *) tc;
|
plug.c | 14 #include <netlink/cli/tc.h> 49 static void plug_parse_argv(struct rtnl_tc *tc, int argc, char **argv) 51 struct rtnl_qdisc *qdisc = (struct rtnl_qdisc *) tc;
|
blackhole.c | 13 #include <netlink/cli/tc.h> 28 static void blackhole_parse_argv(struct rtnl_tc *tc, int argc, char **argv)
|
ingress.c | 14 #include <netlink/cli/tc.h> 29 static void ingress_parse_argv(struct rtnl_tc *tc, int argc, char **argv)
|
/external/ltp/testcases/kernel/syscalls/chmod/ |
chmod06.c | 89 } tc[] = { variable in typeref:struct:test_case_t 102 int TST_TOTAL = ARRAY_SIZE(tc); 123 if (tc[i].setup) 124 tc[i].setup(); 126 TEST(chmod(tc[i].pathname, tc[i].mode)); 128 if (tc[i].cleanup) 129 tc[i].cleanup(); 136 if (TEST_ERRNO == tc[i].exp_errno) 143 tc[i].exp_errno [all...] |
/external/ltp/testcases/kernel/syscalls/setxattr/ |
setxattr03.c | 79 static struct test_case tc[] = { variable in typeref:struct:test_case 106 int TST_TOTAL = sizeof(tc) / sizeof(tc[0]); 121 TEST(setxattr(tc[i].fname, tc[i].key, tc[i].value, 122 tc[i].size, tc[i].flags)); 124 if (TEST_ERRNO == tc[i].exp_err) { 125 tst_resm(TPASS | TTERRNO, "%s", tc[i].desc) [all...] |
/prebuilts/go/darwin-x86/misc/cgo/testsanitizers/ |
msan_test.go | 32 for _, tc := range cases { 33 tc := tc 34 name := strings.TrimSuffix(tc.src, ".go") 42 mustRun(t, config.goCmd("build", "-o", outPath, srcPath(tc.src))) 45 if tc.wantErr {
|
tsan_test.go | 37 for _, tc := range cases { 38 tc := tc 39 name := strings.TrimSuffix(tc.src, ".go") 47 mustRun(t, config.goCmd("build", "-o", outPath, srcPath(tc.src))) 50 if tc.needsRuntime {
|
/prebuilts/go/darwin-x86/src/testing/ |
match_test.go | 64 for _, tc := range testCases { 65 a := splitRegexp(tc.pattern) 66 if !reflect.DeepEqual(a, tc.result) { 67 t.Errorf("splitRegexp(%q) = %#v; want %#v", tc.pattern, a, tc.result) 72 if _, err := regexp.Compile(tc.pattern); err != nil { 80 t.Errorf("%s: expected error in any of %q", tc.pattern, a) 131 for _, tc := range testCases { 132 m := newMatcher(regexp.MatchString, tc.pattern, "-test.run") 134 parent := &common{name: tc.parent [all...] |
/prebuilts/go/linux-x86/misc/cgo/testsanitizers/ |
msan_test.go | 32 for _, tc := range cases { 33 tc := tc 34 name := strings.TrimSuffix(tc.src, ".go") 42 mustRun(t, config.goCmd("build", "-o", outPath, srcPath(tc.src))) 45 if tc.wantErr {
|
tsan_test.go | 37 for _, tc := range cases { 38 tc := tc 39 name := strings.TrimSuffix(tc.src, ".go") 47 mustRun(t, config.goCmd("build", "-o", outPath, srcPath(tc.src))) 50 if tc.needsRuntime {
|
/prebuilts/go/linux-x86/src/testing/ |
match_test.go | 64 for _, tc := range testCases { 65 a := splitRegexp(tc.pattern) 66 if !reflect.DeepEqual(a, tc.result) { 67 t.Errorf("splitRegexp(%q) = %#v; want %#v", tc.pattern, a, tc.result) 72 if _, err := regexp.Compile(tc.pattern); err != nil { 80 t.Errorf("%s: expected error in any of %q", tc.pattern, a) 131 for _, tc := range testCases { 132 m := newMatcher(regexp.MatchString, tc.pattern, "-test.run") 134 parent := &common{name: tc.parent [all...] |
/prebuilts/go/darwin-x86/src/index/suffixarray/ |
suffixarray_test.go | 125 func testLookup(t *testing.T, tc *testCase, x *Index, s string, n int) { 127 exp := find(tc.source, s, n) 131 t.Errorf("test %q, lookup %q (n = %d): expected %d results; got %d", tc.name, s, n, len(exp), len(res)) 142 if r < 0 || len(tc.source) <= r { 143 t.Errorf("test %q, lookup %q, result %d (n = %d): index %d out of range [0, %d[", tc.name, s, i, n, r, len(tc.source)) 144 } else if !strings.HasPrefix(tc.source[r:], s) { 145 t.Errorf("test %q, lookup %q, result %d (n = %d): index %d not a match", tc.name, s, i, n, r) 148 t.Errorf("test %q, lookup %q, result %d (n = %d): found duplicate index %d", tc.name, s, i, n, r) 157 t.Errorf("test %q, lookup %q, result %d: expected index %d; got %d", tc.name, s, i, e, r [all...] |
/prebuilts/go/linux-x86/src/index/suffixarray/ |
suffixarray_test.go | 125 func testLookup(t *testing.T, tc *testCase, x *Index, s string, n int) { 127 exp := find(tc.source, s, n) 131 t.Errorf("test %q, lookup %q (n = %d): expected %d results; got %d", tc.name, s, n, len(exp), len(res)) 142 if r < 0 || len(tc.source) <= r { 143 t.Errorf("test %q, lookup %q, result %d (n = %d): index %d out of range [0, %d[", tc.name, s, i, n, r, len(tc.source)) 144 } else if !strings.HasPrefix(tc.source[r:], s) { 145 t.Errorf("test %q, lookup %q, result %d (n = %d): index %d not a match", tc.name, s, i, n, r) 148 t.Errorf("test %q, lookup %q, result %d (n = %d): found duplicate index %d", tc.name, s, i, n, r) 157 t.Errorf("test %q, lookup %q, result %d: expected index %d; got %d", tc.name, s, i, e, r [all...] |
/external/libnl/lib/route/qdisc/ |
fifo.c | 33 #include <netlink-private/tc.h> 35 #include <netlink-private/route/tc-api.h> 44 static int fifo_msg_parser(struct rtnl_tc *tc, void *data) 49 if (tc->tc_opts->d_size < sizeof(struct tc_fifo_qopt)) 52 opt = (struct tc_fifo_qopt *) tc->tc_opts->d_data; 59 static void pfifo_dump_line(struct rtnl_tc *tc, void *data, 68 static void bfifo_dump_line(struct rtnl_tc *tc, void *data, 82 static int fifo_msg_fill(struct rtnl_tc *tc, void *data, struct nl_msg *msg)
|
/external/selinux/libsepol/cil/test/unit/ |
test_cil_symtab.c | 39 void test_cil_symtab_insert(CuTest *tc) { 60 CuAssertIntEquals(tc, SEPOL_OK, rc);
|
/prebuilts/misc/common/swig/include/2.0.11/pike/ |
pikerun.swg | 48 swig_cast_info *tc; 55 tc = SWIG_TypeCheckStruct(obj_wrapper->type, ty); 56 if (tc) { 58 *ptr = SWIG_TypeCast(tc, obj_wrapper->self, &newmemory);
|
/prebuilts/go/darwin-x86/src/regexp/ |
all_test.go | 264 for _, tc := range replaceTests { 265 re, err := Compile(tc.pattern) 267 t.Errorf("Unexpected error compiling %q: %v", tc.pattern, err) 270 actual := re.ReplaceAllString(tc.input, tc.replacement) 271 if actual != tc.output { 273 tc.pattern, tc.input, tc.replacement, actual, tc.output [all...] |
/prebuilts/go/darwin-x86/src/vendor/golang_org/x/net/idna/ |
punycode_test.go | 155 for _, tc := range punycodeTestCases { 156 if got, err := decode(tc.encoded); err != nil { 157 t.Errorf("decode(%q): %v", tc.encoded, err) 158 } else if got != tc.s { 159 t.Errorf("decode(%q): got %q, want %q", tc.encoded, got, tc.s) 162 if got, err := encode("", tc.s); err != nil { 163 t.Errorf(`encode("", %q): %v`, tc.s, err) 164 } else if got != tc.encoded { 165 t.Errorf(`encode("", %q): got %q, want %q`, tc.s, got, tc.encoded [all...] |
/prebuilts/go/linux-x86/src/regexp/ |
all_test.go | 264 for _, tc := range replaceTests { 265 re, err := Compile(tc.pattern) 267 t.Errorf("Unexpected error compiling %q: %v", tc.pattern, err) 270 actual := re.ReplaceAllString(tc.input, tc.replacement) 271 if actual != tc.output { 273 tc.pattern, tc.input, tc.replacement, actual, tc.output [all...] |
/prebuilts/go/linux-x86/src/vendor/golang_org/x/net/idna/ |
punycode_test.go | 155 for _, tc := range punycodeTestCases { 156 if got, err := decode(tc.encoded); err != nil { 157 t.Errorf("decode(%q): %v", tc.encoded, err) 158 } else if got != tc.s { 159 t.Errorf("decode(%q): got %q, want %q", tc.encoded, got, tc.s) 162 if got, err := encode("", tc.s); err != nil { 163 t.Errorf(`encode("", %q): %v`, tc.s, err) 164 } else if got != tc.encoded { 165 t.Errorf(`encode("", %q): got %q, want %q`, tc.s, got, tc.encoded [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/cjkcodecs/ |
_codecs_cn.c | 177 ucs4_t tc = c - 0x10000;
local 181 OUT4((unsigned char)(tc % 10) + 0x30)
182 tc /= 10;
183 OUT3((unsigned char)(tc % 126) + 0x81)
184 tc /= 126;
185 OUT2((unsigned char)(tc % 10) + 0x30)
186 tc /= 10;
187 OUT1((unsigned char)(tc + 0x90))
211 Py_UNICODE tc;
local 213 tc = c - utrrange->first + [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/cjkcodecs/ |
_codecs_cn.c | 177 ucs4_t tc = c - 0x10000;
local 181 OUT4((unsigned char)(tc % 10) + 0x30)
182 tc /= 10;
183 OUT3((unsigned char)(tc % 126) + 0x81)
184 tc /= 126;
185 OUT2((unsigned char)(tc % 10) + 0x30)
186 tc /= 10;
187 OUT1((unsigned char)(tc + 0x90))
211 Py_UNICODE tc;
local 213 tc = c - utrrange->first + [all...] |
/external/ltp/testcases/kernel/syscalls/get_mempolicy/ |
get_mempolicy01.c | 194 static int do_test(struct test_case *tc); 221 static int do_test(struct test_case *tc) 235 switch (tc->ttype) { 239 if (tc->from_node == NONE) 240 TEST(ltp_syscall(__NR_set_mempolicy, tc->policy, 243 TEST(ltp_syscall(__NR_set_mempolicy, tc->policy, 257 if (tc->from_node == NONE) 258 TEST(ltp_syscall(__NR_mbind, p, len, tc->policy, 261 TEST(ltp_syscall(__NR_mbind, p, len, tc->policy, 268 if (tc->ttype == INVALID_POINTER [all...] |