Home
last modified time | relevance | path

Searched refs:expected (Results 1 – 25 of 1026) sorted by relevance

12345678910>>...42

/OK3568_Linux_fs/external/xserver/test/
H A Dsignal-logging.c55 char expected[21]; in check_signed_number_format_test() local
57 sprintf(expected, "%ld", number); in check_signed_number_format_test()
59 if(strncmp(string, expected, 21) != 0) { in check_signed_number_format_test()
61 (intmax_t) number, expected, string); in check_signed_number_format_test()
72 char expected[21]; in check_float_format_test() local
75 sprintf(expected, "%.2f", number); in check_float_format_test()
78 if(strncmp(string, expected, 21) != 0) { in check_float_format_test()
80 number, expected, string); in check_float_format_test()
91 char expected[21]; in check_number_format_test() local
93 sprintf(expected, "%lu", number); in check_number_format_test()
[all …]
/OK3568_Linux_fs/yocto/poky/bitbake/lib/bb/tests/
H A Drunqueue.py59 expected = ['a1:' + x for x in self.alltasks]
60 self.assertEqual(set(tasks), set(expected))
69expected = ['a1:package_setscene', 'a1:fetch', 'a1:unpack', 'a1:patch', 'a1:prepare_recipe_sysroot…
72 self.assertEqual(set(tasks), set(expected))
81expected = ['a1:package_setscene', 'a1:packagedata', 'a1:package_qa', 'a1:package_write_rpm', 'a1:…
83 self.assertEqual(set(tasks), set(expected))
92expected = ['a1:package_write_ipk_setscene', 'a1:package_write_rpm_setscene', 'a1:packagedata_sets…
94 self.assertEqual(set(tasks), set(expected))
103expected = ['a1:package_write_ipk_setscene', 'a1:package_write_rpm_setscene', 'a1:packagedata_sets…
105 self.assertEqual(set(tasks), set(expected))
[all …]
/OK3568_Linux_fs/kernel/tools/perf/tests/shell/
H A Drecord+probe_libc_inet_pton.sh33 expected=`mktemp -u /tmp/expected.XXX`
35 echo "ping[][0-9 \.:]+$event_name: \([[:xdigit:]]+\)" > $expected
36 echo ".*inet_pton\+0x[[:xdigit:]]+[[:space:]]\($libc|inlined\)$" >> $expected
40 echo "gaih_inet.*\+0x[[:xdigit:]]+[[:space:]]\($libc|inlined\)$" >> $expected
41 echo "(__GI_)?getaddrinfo\+0x[[:xdigit:]]+[[:space:]]\($libc|inlined\)$" >> $expected
42 echo "main\+0x[[:xdigit:]]+[[:space:]]\(.*/bin/ping.*\)$" >> $expected
46 echo "gaih_inet.*\+0x[[:xdigit:]]+[[:space:]]\($libc\)$" >> $expected
47 echo "getaddrinfo\+0x[[:xdigit:]]+[[:space:]]\($libc\)$" >> $expected
48 echo ".*(\+0x[[:xdigit:]]+|\[unknown\])[[:space:]]\(.*/bin/ping.*\)$" >> $expected
52 echo "getaddrinfo\+0x[[:xdigit:]]+[[:space:]]\($libc\)$" >> $expected
[all …]
/OK3568_Linux_fs/kernel/fs/ext4/
H A Dinode-test.c77 struct timespec64 expected; member
110 .expected = {.tv_sec = -0x80000000LL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding()
118 .expected = {.tv_sec = -1LL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding()
126 .expected = {0LL, 0L}, in inode_test_xtimestamp_decoding()
134 .expected = {.tv_sec = 0x7fffffffLL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding()
142 .expected = {.tv_sec = 0x80000000LL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding()
150 .expected = {.tv_sec = 0xffffffffLL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding()
158 .expected = {.tv_sec = 0x100000000LL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding()
166 .expected = {.tv_sec = 0x17fffffffLL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding()
174 .expected = {.tv_sec = 0x180000000LL, .tv_nsec = 0L}, in inode_test_xtimestamp_decoding()
[all …]
/OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-support/syslog-ng/files/
H A DCVE-2022-38725-0005.patch77 -_rfc3164_timestamp_eq(const gchar *ts, const gchar *expected, gchar converted[32])
78 +_rfc3164_timestamp_eq(const gchar *ts, gint len, const gchar *expected, gchar converted[32])
82 return strcmp(converted, expected) == 0;
86 -_rfc5424_timestamp_eq(const gchar *ts, const gchar *expected, gchar converted[32])
87 +_rfc5424_timestamp_eq(const gchar *ts, gint len, const gchar *expected, gchar converted[32])
91 return strcmp(converted, expected) == 0;
94 #define _expect_rfc3164_timestamp_eq(ts, expected) \
97 …amp_eq(ts, expected, converted), "Parsed RFC3164 timestamp does not equal expected, ts=%s, convert…
98 …eq(ts, -1, expected, converted), "Parsed RFC3164 timestamp does not equal expected, ts=%s, convert…
101 +#define _expect_rfc3164_timestamp_len_eq(ts, len, expected) \
[all …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/
H A Dkselftest_harness.h442 #define ASSERT_EQ(expected, seen) \ argument
443 __EXPECT(expected, #expected, seen, #seen, ==, 1)
453 #define ASSERT_NE(expected, seen) \ argument
454 __EXPECT(expected, #expected, seen, #seen, !=, 1)
464 #define ASSERT_LT(expected, seen) \ argument
465 __EXPECT(expected, #expected, seen, #seen, <, 1)
475 #define ASSERT_LE(expected, seen) \ argument
476 __EXPECT(expected, #expected, seen, #seen, <=, 1)
486 #define ASSERT_GT(expected, seen) \ argument
487 __EXPECT(expected, #expected, seen, #seen, >, 1)
[all …]
/OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/valgrind/valgrind/
H A D0001-Make-local-functions-static-to-avoid-assembler-error.patch36 -UWord do_acasW ( UWord* addr, UWord expected, UWord nyu )
37 +static UWord do_acasW ( UWord* addr, UWord expected, UWord nyu )
41 @@ -57,7 +57,7 @@ UWord do_acasW ( UWord* addr, UWord expected, UWord nyu )
45 -UWord do_acasW ( UWord* addr, UWord expected, UWord nyu )
46 +static UWord do_acasW ( UWord* addr, UWord expected, UWord nyu )
50 @@ -90,7 +90,7 @@ UWord do_acasW ( UWord* addr, UWord expected, UWord nyu )
54 -UWord do_acasW ( UWord* addr, UWord expected, UWord nyu )
55 +static UWord do_acasW ( UWord* addr, UWord expected, UWord nyu )
57 UWord block[4] = { (UWord)addr, expected, nyu, 2 };
59 @@ -113,7 +113,7 @@ UWord do_acasW ( UWord* addr, UWord expected, UWord nyu )
[all …]
/OK3568_Linux_fs/kernel/scripts/kconfig/tests/
H A Dconftest.py220 def _read_and_compare(self, compare, expected): argument
226 with open(os.path.join(self._test_dir, expected)) as f:
230 def _contains(self, attr, expected): argument
233 expected)
235 def _matches(self, attr, expected): argument
237 expected)
239 def config_contains(self, expected): argument
245 return self._contains('config', expected)
247 def config_matches(self, expected): argument
253 return self._matches('config', expected)
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/src/mbgl/style/expression/
H A Dcheck_subtype.cpp9 std::string errorMessage(const Type& expected, const Type& t) { in errorMessage() argument
10 return {"Expected " + toString(expected) + " but found " + toString(t) + " instead."}; in errorMessage()
13 optional<std::string> checkSubtype(const Type& expected, const Type& t) { in checkSubtype() argument
16 optional<std::string> result = expected.match( in checkSubtype()
18 if (!t.is<Array>()) { return {errorMessage(expected, t)}; } in checkSubtype()
21 if (err) return { errorMessage(expected, t) }; in checkSubtype()
22 … if (expectedArray.N && expectedArray.N != actualArray.N) return { errorMessage(expected, t) }; in checkSubtype()
44 return { errorMessage(expected, t) }; in checkSubtype()
47 if (expected != t) { in checkSubtype()
48 return { errorMessage(expected, t) }; in checkSubtype()
H A Dparsing_context.cpp166 if (expected) { in parse()
168 …if ((*expected == type::String || *expected == type::Number || *expected == type::Boolean || *expe… in parse()
170 parsed = { std::make_unique<Assertion>(*expected, array(std::move(*parsed))) }; in parse()
172 } else if (expected->is<type::Array>() && actual == type::Value) { in parse()
174 … parsed = { std::make_unique<ArrayAssertion>(expected->get<type::Array>(), std::move(*parsed)) }; in parse()
176 } else if (*expected == type::Color && (actual == type::Value || actual == type::String)) { in parse()
178 parsed = { std::make_unique<Coercion>(*expected, array(std::move(*parsed))) }; in parse()
249 assert(expected); in checkType()
250 optional<std::string> err = type::checkSubtype(*expected, t); in checkType()
/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/prog_tests/
H A Dselect_reuseport.c249 struct data_check expected = {}, result; in check_data() local
265 expected.len = MIN_TCPHDR_LEN; in check_data()
266 expected.ip_protocol = IPPROTO_TCP; in check_data()
268 expected.len = UDPHDR_LEN; in check_data()
269 expected.ip_protocol = IPPROTO_UDP; in check_data()
273 expected.eth_protocol = htons(ETH_P_IPV6); in check_data()
274 expected.bind_inany = !srv_sa.v6.sin6_addr.s6_addr32[3] && in check_data()
279 memcpy(&expected.skb_addrs[0], cli_sa.v6.sin6_addr.s6_addr32, in check_data()
281 memcpy(&expected.skb_addrs[4], &in6addr_loopback, in check_data()
283 expected.skb_ports[0] = cli_sa.v6.sin6_port; in check_data()
[all …]
/OK3568_Linux_fs/u-boot/post/lib_powerpc/fpu/
H A Dmul-subnormal-single-1.c62 } static volatile expected[] = variable
73 for (i = 0; i < ARRAY_SIZE(expected); i++) in fpu_post_test_math7()
75 tstmul (expected[i].p1, expected[i].p2, expected[i].res); in fpu_post_test_math7()
76 tstmul (expected[i].p2, expected[i].p1, expected[i].res); in fpu_post_test_math7()
/OK3568_Linux_fs/kernel/tools/testing/selftests/powerpc/pmu/ebb/
H A Dreg_access_test.c18 uint64_t val, expected; in reg_access() local
22 expected = 0x8000000100000000ull; in reg_access()
23 mtspr(SPRN_BESCR, expected); in reg_access()
26 FAIL_IF(val != expected); in reg_access()
28 expected = 0x0000000001000000ull; in reg_access()
29 mtspr(SPRN_EBBHR, expected); in reg_access()
32 FAIL_IF(val != expected); in reg_access()
/OK3568_Linux_fs/kernel/tools/testing/selftests/ftrace/test.d/ftrace/
H A Dfunc_set_ftrace_file.tc119 DIFF=`diff $TMPDIR/actual $TMPDIR/expected`
124 cat available_filter_functions | cut -d' ' -f1 | grep 'lock' | sort -u > $TMPDIR/expected
129 grep -v 'try.*lock$' $TMPDIR/expected > $TMPDIR/expected2
130 mv $TMPDIR/expected2 $TMPDIR/expected
135 grep -v '^m.*lock$' $TMPDIR/expected > $TMPDIR/expected2
136 mv $TMPDIR/expected2 $TMPDIR/expected
141 grep -v '^c.*unlock' $TMPDIR/expected > $TMPDIR/expected2
142 mv $TMPDIR/expected2 $TMPDIR/expected
147 > $TMPDIR/expected
151 rm $TMPDIR/expected
/OK3568_Linux_fs/kernel/mm/damon/
H A Dvaddr-test.h136 unsigned long *expected, int nr_expected) in damon_do_test_apply_three_regions() argument
152 KUNIT_EXPECT_EQ(test, r->ar.start, expected[i * 2]); in damon_do_test_apply_three_regions()
153 KUNIT_EXPECT_EQ(test, r->ar.end, expected[i * 2 + 1]); in damon_do_test_apply_three_regions()
174 unsigned long expected[] = {5, 20, 20, 27, 45, 55, in damon_test_apply_three_regions1() local
178 new_three_regions, expected, ARRAY_SIZE(expected)); in damon_test_apply_three_regions1()
196 unsigned long expected[] = {5, 20, 20, 27, 56, 57, in damon_test_apply_three_regions2() local
200 new_three_regions, expected, ARRAY_SIZE(expected)); in damon_test_apply_three_regions2()
220 unsigned long expected[] = {5, 20, 20, 27, 61, 63, in damon_test_apply_three_regions3() local
224 new_three_regions, expected, ARRAY_SIZE(expected)); in damon_test_apply_three_regions3()
245 unsigned long expected[] = {5, 7, 30, 32, 65, 68}; in damon_test_apply_three_regions4() local
[all …]
/OK3568_Linux_fs/yocto/meta-openembedded/meta-networking/recipes-protocols/openlldp/files/
H A D0001-cmds-fix-enum-conversion.patch32 -static int evb22_cmdok(struct cmd *cmd, cmd_status expected)
33 +static int evb22_cmdok(struct cmd *cmd, int expected)
35 if (cmd->cmd != expected)
45 -static int evb_cmdok(struct cmd *cmd, cmd_status expected)
46 +static int evb_cmdok(struct cmd *cmd, int expected)
48 if (cmd->cmd != expected)
58 -static int vdp22_cmdok(struct cmd *cmd, cmd_status expected)
59 +static int vdp22_cmdok(struct cmd *cmd, int expected)
61 if (cmd->cmd != expected)
71 -static int vdp_cmdok(struct cmd *cmd, cmd_status expected)
[all …]
/OK3568_Linux_fs/kernel/tools/perf/tests/
H A Dhists_cumulate.c177 static int do_test(struct hists *hists, struct result *expected, size_t nr_expected, in do_test() argument
210 TEST_ASSERT_VAL(buf, he->stat.period == expected[i].self && in do_test()
211 !strcmp(COMM(he), expected[i].comm) && in do_test()
212 !strcmp(DSO(he), expected[i].dso) && in do_test()
213 !strcmp(SYM(he), expected[i].sym)); in do_test()
216 TEST_ASSERT_VAL(buf, he->stat_acc->period == expected[i].children); in do_test()
269 struct result expected[] = { in test1() local
292 err = do_test(hists, expected, ARRAY_SIZE(expected), NULL, 0); in test1()
367 struct result expected[] = { in test2() local
439 err = do_test(hists, expected, ARRAY_SIZE(expected), in test2()
[all …]
/OK3568_Linux_fs/kernel/lib/
H A Dtest_user_copy.c94 int expected = is_zeroed(kmem + start, len); in test_check_nonzero_user() local
96 ret |= test(retval != expected, in test_check_nonzero_user()
98 retval, expected, start, end); in test_check_nonzero_user()
109 char *umem_src = NULL, *expected = NULL; in test_copy_struct_from_user() local
117 expected = kmalloc(size, GFP_KERNEL); in test_copy_struct_from_user()
118 ret = test(expected == NULL, "kmalloc failed"); in test_copy_struct_from_user()
131 memcpy(expected, umem_src, ksize); in test_copy_struct_from_user()
136 ret |= test(memcmp(kmem, expected, ksize), in test_copy_struct_from_user()
143 memcpy(expected, umem_src, usize); in test_copy_struct_from_user()
144 memset(expected + usize, 0x0, ksize - usize); in test_copy_struct_from_user()
[all …]
H A Dpercpu_test.c5 #define CHECK(native, pcp, expected) \ argument
7 WARN((native) != (expected), \
10 (long long)(expected), (long long)(expected)); \
11 WARN(__this_cpu_read(pcp) != (expected), \
14 (long long)(expected), (long long)(expected)); \
H A Dglobtest.c16 bool expected; member
19 static bool __pure __init test(char const *pat, char const *str, bool expected) in test() argument
22 bool success = match == expected; in test()
144 bool expected = *p++ & 1; in glob_init() local
148 successes += test(pat, p, expected); in glob_init()
/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/
H A Dtest_offload.py172 def bpftool_prog_list(expected=None, ns=""): argument
178 if expected is not None:
179 if len(progs) != expected:
181 (len(progs), expected))
184 def bpftool_map_list(expected=None, ns=""): argument
188 if expected is not None:
189 if len(maps) != expected:
191 (len(maps), expected))
194 def bpftool_prog_list_wait(expected=0, n_retry=20): argument
197 if nprogs == expected:
[all …]
/OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-support/cpprest/cpprest/
H A Ddisable-float-tests.patch11 …void compare_double(double expected, double actual) { compare_floating(expected, actual, DBL_EPSIL…
12 …void compare_float(float expected, float actual) { compare_floating(expected, actual, FLT_EPSILON)…
19 if (expected == 0) VERIFY_ARE_EQUAL(1 / expected, 1 / actual);
/OK3568_Linux_fs/kernel/tools/testing/selftests/damon/
H A Ddebugfs_attrs.sh9 expected=$5
12 if [ $? -ne "$expected" ]
14 echo "writing $content to $file doesn't return $expected"
32 expected=$3
36 if [ "$content" != "$expected" ]
38 echo "reading $file expected $expected but $content"
/OK3568_Linux_fs/buildroot/support/testing/tests/package/br2-external/openjdk/package/openjdk-jni-test/
H A DJniTest.java6 Object expected, in Test() argument
10 if (!actual.equals(expected)) in Test()
15 expected, in Test()
28 String expected) in Test() argument
30 JniTest.Test(name, actual, expected, actual, expected); in Test()
/OK3568_Linux_fs/kernel/tools/testing/selftests/net/
H A Drxtimestamp.c45 struct tstamps expected; member
145 if (t->expected.tstamp) in print_test_case()
147 if (t->expected.tstampns) in print_test_case()
149 if (t->expected.swtstamp || t->expected.hwtstamp) { in print_test_case()
151 if (t->expected.swtstamp) in print_test_case()
153 if (t->expected.swtstamp && t->expected.hwtstamp) in print_test_case()
155 if (t->expected.hwtstamp) in print_test_case()
175 bool do_recv(int rcv, int read_size, struct tstamps expected) in do_recv() argument
233 if (expected.field != actual.field) { \ in do_recv()
234 if (expected.field) \ in do_recv()
[all …]

12345678910>>...42