| /OK3568_Linux_fs/kernel/scripts/kconfig/tests/ |
| H A D | conftest.py | 220 def _read_and_compare(self, compare, expected): argument 224 expected: file that contains the expected data 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 240 """Check if resulted configuration contains expected data. 242 expected: file that contains the expected data [all …]
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/ |
| H A D | kselftest_harness.h | 167 * Defines a test by name and the expected term signal. 437 * @expected: expected value 440 * ASSERT_EQ(expected, measured): expected == measured 442 #define ASSERT_EQ(expected, seen) \ argument 443 __EXPECT(expected, #expected, seen, #seen, ==, 1) 448 * @expected: expected value 451 * ASSERT_NE(expected, measured): expected != measured 453 #define ASSERT_NE(expected, seen) \ argument 454 __EXPECT(expected, #expected, seen, #seen, !=, 1) 459 * @expected: expected value [all …]
|
| /OK3568_Linux_fs/external/xserver/test/ |
| H A D | signal-logging.c | 55 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() 60 fprintf(stderr, "Failed to convert %jd to decimal string (expected %s but got %s)\n", 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 [all …]
|
| /OK3568_Linux_fs/yocto/poky/bitbake/lib/bb/tests/ |
| H A D | runqueue.py | 59 expected = ['a1:' + x for x in self.alltasks] 60 self.assertEqual(set(tasks), set(expected)) 69 …expected = ['a1:package_setscene', 'a1:fetch', 'a1:unpack', 'a1:patch', 'a1:prepare_recipe_sysroot… 72 self.assertEqual(set(tasks), set(expected)) 81 …expected = ['a1:package_setscene', 'a1:packagedata', 'a1:package_qa', 'a1:package_write_rpm', 'a1:… 83 self.assertEqual(set(tasks), set(expected)) 92 …expected = ['a1:package_write_ipk_setscene', 'a1:package_write_rpm_setscene', 'a1:packagedata_sets… 94 self.assertEqual(set(tasks), set(expected)) 103 …expected = ['a1:package_write_ipk_setscene', 'a1:package_write_rpm_setscene', 'a1:packagedata_sets… 105 self.assertEqual(set(tasks), set(expected)) [all …]
|
| /OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/valgrind/valgrind/ |
| H A D | 0001-Make-local-functions-static-to-avoid-assembler-error.patch | 36 -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/yocto/meta-openembedded/meta-oe/recipes-support/syslog-ng/files/ |
| H A D | CVE-2022-38725-0005.patch | 77 -_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/ftrace/test.d/ftrace/ |
| H A D | func_set_ftrace_file.tc | 68 fail "Expected only $ALL_FUNCS" 73 fail "Expected $ALL_FUNCS and $FUNC1:traceoff:unlimited" 78 fail "Expected $FUNC1 and $FUNC1:traceoff:unlimited" 83 fail "Expected $FUNC1 $FUNC2 and $FUNC1:traceoff:unlimited" 88 fail "Expected $FUNC1 $FUNC2 $FUNC1:traceoff:unlimited and $FUNC2:traceoff:unlimited" 93 fail "Expected $FUNC1 $FUNC1:traceoff:unlimited and $FUNC2:traceoff:unlimited" 98 fail "Expected $ALL_FUNCS $FUNC1:traceoff:unlimited and $FUNC2:traceoff:unlimited" 104 fail "Expected $ALL_FUNCS" 109 fail "Expected $FUNC1" 114 fail "Expected $FUNC1 and $FUNC2" [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dcn21/ |
| H A D | dcn21_hubp.c | 291 …DC_LOG_DEBUG("DML Validation | HUBPRET_CONTROL:DET_BUF_PLANE1_BASE_ADDRESS - Expected: %u Actual:… in hubp21_validate_dml_output() 294 …DC_LOG_DEBUG("DML Validation | DCN_EXPANSION_MODE:DRQ_EXPANSION_MODE - Expected: %u Actual: %u\n", in hubp21_validate_dml_output() 297 …DC_LOG_DEBUG("DML Validation | DCN_EXPANSION_MODE:MRQ_EXPANSION_MODE - Expected: %u Actual: %u\n", in hubp21_validate_dml_output() 300 …DC_LOG_DEBUG("DML Validation | DCN_EXPANSION_MODE:DET_BUF_PLANE1_BASE_ADDRESS - Expected: %u Actu… in hubp21_validate_dml_output() 303 …DC_LOG_DEBUG("DML Validation | DCN_EXPANSION_MODE:CRQ_EXPANSION_MODE - Expected: %u Actual: %u\n", in hubp21_validate_dml_output() 307 DC_LOG_DEBUG("DML Validation | DCHUBP_REQ_SIZE_CONFIG_C:CHUNK_SIZE - Expected: %u Actual: %u\n", in hubp21_validate_dml_output() 310 …DC_LOG_DEBUG("DML Validation | DCHUBP_REQ_SIZE_CONFIG_C:MIN_CHUNK_SIZE - Expected: %u Actual: %u\… in hubp21_validate_dml_output() 313 …DC_LOG_DEBUG("DML Validation | DCHUBP_REQ_SIZE_CONFIG_C:META_CHUNK_SIZE - Expected: %u Actual: %u… in hubp21_validate_dml_output() 316 …DC_LOG_DEBUG("DML Validation | DCHUBP_REQ_SIZE_CONFIG_C:MIN_META_CHUNK_SIZE - Expected: %u Actual… in hubp21_validate_dml_output() 319 …DC_LOG_DEBUG("DML Validation | DCHUBP_REQ_SIZE_CONFIG_C:DPTE_GROUP_SIZE - Expected: %u Actual: %u… in hubp21_validate_dml_output() [all …]
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/livepatch/ |
| H A D | test-shadow-vars.sh | 21 $MOD_TEST: got expected NULL result 35 $MOD_TEST: got expected PTR3 -> PTR2 result 37 $MOD_TEST: got expected PTR6 -> PTR5 result 39 $MOD_TEST: got expected PTR8 -> PTR7 result 41 $MOD_TEST: got expected PTR11 -> PTR10 result 43 $MOD_TEST: got expected PTR13 -> PTR12 result 45 $MOD_TEST: got expected PTR16 -> PTR15 result 47 $MOD_TEST: got expected PTR3 -> PTR2 result 49 $MOD_TEST: got expected PTR8 -> PTR7 result 51 $MOD_TEST: got expected PTR13 -> PTR12 result [all …]
|
| /OK3568_Linux_fs/buildroot/dl/qt5location/git/src/plugins/geoservices/nokia/ |
| H A D | qgeocodejsonparser.cpp | 114 *errorString = QLatin1String("Expected Address element within Location object"); in checkLocation() 117 *errorString = QLatin1String("Expected Address object within Location object"); in checkLocation() 123 *errorString = QLatin1String("Expected DisplayPosition element within Location object"); in checkLocation() 126 *errorString = QLatin1String("Expected DisplayPosition object within Location object"); in checkLocation() 132 … *errorString = QLatin1String("Expected Latitude element within Location.DisplayPosition object"); in checkLocation() 135 … *errorString = QLatin1String("Expected Latitude double within Location.DisplayPosition object"); in checkLocation() 140 … *errorString = QLatin1String("Expected Longitude element within Location.DisplayPosition object"); in checkLocation() 143 … *errorString = QLatin1String("Expected Longitude double within Location.DisplayPosition object"); in checkLocation() 149 *errorString = QLatin1String("Expected MapView element within Location object"); in checkLocation() 152 *errorString = QLatin1String("Expected MapView object within Location object"); in checkLocation() [all …]
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/prog_tests/ |
| H A D | select_reuseport.c | 249 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/kernel/tools/perf/tests/shell/ |
| H A D | record+probe_libc_inet_pton.sh | 33 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/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/src/mbgl/style/expression/ |
| H A D | check_subtype.cpp | 9 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()
|
| /OK3568_Linux_fs/kernel/fs/ext4/ |
| H A D | inode-test.c | 77 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/external/security/rk_tee_user/v2/host/xtest/adbg/include/ |
| H A D | adbg.h | 111 #define ADBG_EXPECT(Case_p, Expected, Got) \ argument 112 ADBG_EXPECT_ENUM(Case_p, Expected, Got, NULL) 114 #define ADBG_EXPECT_NOT(Case_p, Expected, Got) \ argument 115 ADBG_EXPECT_NOT_ENUM(Case_p, Expected, Got, NULL) 117 #define ADBG_EXPECT_ENUM(Case_p, Expected, Got, EnumTable_p) \ argument 118 Do_ADBG_Expect(Case_p, __FILE__, __LINE__, Expected, Got, #Got, \ 125 #define ADBG_EXPECT_BOOLEAN(Case_p, Expected, Got) \ argument 126 ADBG_EXPECT_ENUM(Case_p, Expected, Got, ADBG_EnumTable_Boolean) 139 #define ADBG_EXPECT_POINTER(Case_p, Expected, Got) \ argument 140 Do_ADBG_ExpectPointer(Case_p, __FILE__, __LINE__, Expected, Got, #Got) [all …]
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/powerpc/pmu/ebb/ |
| H A D | event_attributes_test.c | 23 /* Expected to succeed */ in event_attributes() 30 /* Expected to fail, no PMC specified */ in event_attributes() 37 /* Expected to fail, not exclusive */ in event_attributes() 44 /* Expected to fail, sets freq */ in event_attributes() 51 /* Expected to fail, sets sample_period */ in event_attributes() 58 /* Expected to fail, sets enable_on_exec */ in event_attributes() 65 /* Expected to fail, sets inherit */ in event_attributes() 76 /* Expected to succeed */ in event_attributes() 88 /* Expected to fail, event doesn't request EBB, leader does */ in event_attributes() 103 /* Expected to fail, leader doesn't request EBB */ in event_attributes() [all …]
|
| H A D | reg_access_test.c | 18 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/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/spirit/home/support/ |
| H A D | attributes.hpp | 63 // Find out if T can be a (strong) substitute for Expected attribute 66 template <typename T, typename Expected> 70 , typename container_value<Expected>::type> 73 template <typename T, typename Expected, typename Enable = void> 74 struct is_substitute_impl : is_same<T, Expected> {}; 76 template <typename T, typename Expected> 77 struct is_substitute_impl<T, Expected, 81 fusion::traits::is_sequence<Expected>, 82 mpl::equal<T, Expected, is_substitute<mpl::_1, mpl::_2> > 87 template <typename T, typename Expected> [all …]
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/ |
| H A D | test_offload.py | 172 def bpftool_prog_list(expected=None, ns=""): argument 178 if expected is not None: 179 if len(progs) != expected: 180 fail(True, "%d BPF programs loaded, expected %d" % 181 (len(progs), expected)) 184 def bpftool_map_list(expected=None, ns=""): argument 188 if expected is not None: 189 if len(maps) != expected: 190 fail(True, "%d BPF maps loaded, expected %d" % 191 (len(maps), expected)) [all …]
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-networking/recipes-protocols/openlldp/files/ |
| H A D | 0001-cmds-fix-enum-conversion.patch | 32 -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/testing/selftests/bpf/progs/ |
| H A D | btf_dump_test_case_padding.c | 9 /* ----- START-EXPECTED-OUTPUT ----- */ 16 /* ------ END-EXPECTED-OUTPUT ------ */ 18 /* ----- START-EXPECTED-OUTPUT ----- */ 27 /* ------ END-EXPECTED-OUTPUT ------ */ 35 /* ----- START-EXPECTED-OUTPUT ----- */ 46 /* ------ END-EXPECTED-OUTPUT ------ */ 56 /* ----- START-EXPECTED-OUTPUT ----- */ 72 /* ------ END-EXPECTED-OUTPUT ------ */ 79 /* ----- START-EXPECTED-OUTPUT ----- */ 93 /* ------ END-EXPECTED-OUTPUT ------ */
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/damon/ |
| H A D | debugfs_attrs.sh | 9 expected=$5 12 if [ $? -ne "$expected" ] 14 echo "writing $content to $file doesn't return $expected" 15 echo "expected because: $expect_reason" 32 expected=$3 36 if [ "$content" != "$expected" ] 38 echo "reading $file expected $expected but $content" 39 echo "expected because: $expect_reason"
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dcn20/ |
| H A D | dcn20_hubp.c | 1316 …DC_LOG_DEBUG("DML Validation | HUBPRET_CONTROL:DET_BUF_PLANE1_BASE_ADDRESS - Expected: %u Actual:… in hubp2_validate_dml_output() 1319 …DC_LOG_DEBUG("DML Validation | DCN_EXPANSION_MODE:DRQ_EXPANSION_MODE - Expected: %u Actual: %u\n", in hubp2_validate_dml_output() 1322 …DC_LOG_DEBUG("DML Validation | DCN_EXPANSION_MODE:MRQ_EXPANSION_MODE - Expected: %u Actual: %u\n", in hubp2_validate_dml_output() 1325 …DC_LOG_DEBUG("DML Validation | DCN_EXPANSION_MODE:DET_BUF_PLANE1_BASE_ADDRESS - Expected: %u Actu… in hubp2_validate_dml_output() 1328 …DC_LOG_DEBUG("DML Validation | DCN_EXPANSION_MODE:CRQ_EXPANSION_MODE - Expected: %u Actual: %u\n", in hubp2_validate_dml_output() 1332 DC_LOG_DEBUG("DML Validation | DCHUBP_REQ_SIZE_CONFIG_C:CHUNK_SIZE - Expected: %u Actual: %u\n", in hubp2_validate_dml_output() 1335 …DC_LOG_DEBUG("DML Validation | DCHUBP_REQ_SIZE_CONFIG_C:MIN_CHUNK_SIZE - Expected: %u Actual: %u\… in hubp2_validate_dml_output() 1338 …DC_LOG_DEBUG("DML Validation | DCHUBP_REQ_SIZE_CONFIG_C:META_CHUNK_SIZE - Expected: %u Actual: %u… in hubp2_validate_dml_output() 1341 …DC_LOG_DEBUG("DML Validation | DCHUBP_REQ_SIZE_CONFIG_C:MIN_META_CHUNK_SIZE - Expected: %u Actual… in hubp2_validate_dml_output() 1344 …DC_LOG_DEBUG("DML Validation | DCHUBP_REQ_SIZE_CONFIG_C:DPTE_GROUP_SIZE - Expected: %u Actual: %u… in hubp2_validate_dml_output() [all …]
|
| /OK3568_Linux_fs/kernel/lib/ |
| H A D | test_strscpy.c | 19 * @expected: Expected return value from call to strscpy_pad() 21 * @chars: Number of characters from the src string expected to be 23 * @pad: Number of pad characters expected (in the tail of dst buffer). 29 static int __init tc(char *src, int count, int expected, in tc() argument 55 if (expected > max_expected) { in tc() 56 pr_warn("expected (%d) is bigger than can possibly be returned (%d)", in tc() 57 expected, max_expected); in tc() 61 if ((written) != (expected)) { in tc() 62 pr_err("%d != %d (written, expected)\n", written, expected); in tc() 125 /* tc(src, count, expected, chars, terminator, pad) */ in selftest()
|
| H A D | percpu_test.c | 4 /* validate @native and @pcp counter values match @expected */ 5 #define CHECK(native, pcp, expected) \ argument 7 WARN((native) != (expected), \ 8 "raw %ld (0x%lx) != expected %lld (0x%llx)", \ 10 (long long)(expected), (long long)(expected)); \ 11 WARN(__this_cpu_read(pcp) != (expected), \ 12 "pcp %ld (0x%lx) != expected %lld (0x%llx)", \ 14 (long long)(expected), (long long)(expected)); \
|