/kernel/liteos_a/testsuites/unittest/common/include/ |
H A D | iCunit.h | 218 * 断言指定个数str1和str2字符串内容相同,不同则return 221 #define ICUNIT_ASSERT_SIZE_STRING_EQUAL(str1, str2, strsize, retcode) \ 223 if (strncmp((str1), (str2), (strsize)) != 0) { \ 244 * 断言指定个数str1和str2字符串内容相同,不同则return 246 #define ICUNIT_ASSERT_SIZE_STRING_EQUAL_VOID(str1, str2, size, retcode) \ 248 if (strncmp(str1, str2, size) != 0) { \ 255 * 断言指定个数str1和str2字符串内容不同,相同则return 257 #define ICUNIT_ASSERT_SIZE_STRING_NOT_EQUAL(str1, str2, size, retcode) \ 259 if (strncmp(str1, str2, size) == 0) { \ 267 * 断言str1和str [all...] |
/kernel/liteos_m/testsuites/include/ |
H A D | iCunit.h | 284 #define ICUNIT_ASSERT_SIZE_STRING_EQUAL(str1, str2, strsize, retcode) \
286 if (strncmp((str1), (str2), (strsize)) != 0) { \
292 #define ICUNIT_ASSERT_STRING_EQUAL(str1, str2, retcode) \
294 if (strcmp(str1, str2) != 0) { \
300 #define ICUNIT_ASSERT_STRING_EQUAL_VOID(str1, str2, retcode) \
302 if (strcmp((const char *)str1, (const char *)str2) != 0) { \
308 #define ICUNIT_ASSERT_STRING_NOT_EQUAL(str1, str2, retcode) \
310 if (strcmp(str1, str2) == 0) { \
332 #define ICUNIT_GOTO_STRING_EQUAL(str1, str2, retcode, label) \
334 if (strcmp(str1, str [all...] |
/kernel/liteos_a/testsuites/unittest/libc/sys/full/ |
H A D | sys_test_027.cpp | 43 char *str1 = "/storage/1.txt"; in TestCase() local 46 fd = open(str1, O_CREAT); in TestCase() 54 ret1 = ftok(str1, id1); in TestCase() 56 ret2 = ftok(str1, id2); in TestCase() 59 ret2 = ftok(str1, id1); in TestCase()
|
/kernel/liteos_a/testsuites/kernel/include/ |
H A D | iCunit.h | 327 #define ICUNIT_ASSERT_SIZE_STRING_EQUAL(str1, str2, strsize, retcode) \ 329 if (strncmp((str1), (str2), (strsize)) != 0) { \ 343 #define ICUNIT_ASSERT_STRING_EQUAL(str1, str2, retcode) \ 345 if (strcmp(str1, str2) != 0) { \ 351 #define ICUNIT_ASSERT_STRING_EQUAL_VOID(str1, str2, retcode) \ 353 if (strcmp(str1, str2) != 0) { \ 359 #define ICUNIT_ASSERT_STRING_NOT_EQUAL(str1, str2, retcode) \ 361 if (strcmp(str1, str2) == 0) { \ 399 #define ICUNIT_GOTO_STRING_EQUAL(str1, str2, retcode, label) \ 401 if (strcmp(str1, str [all...] |
/kernel/liteos_a/testsuites/unittest/net/resolv/smoke/ |
H A D | net_resolv_test_007.cpp | 47 char str1[buffer_size], str2[buffer_size]; in EtherNtoarTest() local 49 (void)sprintf_s(str1, sizeof(str1), "%x:%x:%x:%x:%x:%x", r[0], r[1], r[2], r[3], r[4], r[5]); in EtherNtoarTest() 54 ICUNIT_ASSERT_EQUAL((stricmp(str1, buf) == 0 || stricmp(str2, buf) == 0), 1, printf("%s\n", p)); in EtherNtoarTest()
|
H A D | net_resolv_test_006.cpp | 47 char str1[buffer_size], str2[buffer_size]; in EtherNtoaTest() local 49 (void)sprintf_s(str1, sizeof(str1), "%x:%x:%x:%x:%x:%x", r[0], r[1], r[2], r[3], r[4], r[5]); in EtherNtoaTest() 54 ICUNIT_ASSERT_EQUAL((stricmp(str1, buf) == 0 || stricmp(str2, buf) == 0), 1, printf("%s\n", buf)); in EtherNtoaTest()
|
/kernel/liteos_m/testsuites/unittest/fuzz/src/regex/ |
H A D | it_test_regex_fuzz.c | 61 char str1[MAX_STR_BUF_LEN] = {0}; in RegexFuzz() local 74 (void)strncpy_s(str1, MAX_STR_BUF_LEN, string1, maxStrLen); in RegexFuzz() 75 str1[MAX_STR_BUF_LEN - 1] = '\0'; in RegexFuzz() 85 ret = regcomp(&preg, str1, num); in RegexFuzz()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
H A D | probe_read_user_str.c | 5 static const char str1[] = "mestring"; variable 62 if (test_one_str(skel, str1, sizeof(str1))) in test_probe_read_user_str()
|
H A D | varlen.c | 18 const char str1[] = "Hello, "; in test_varlen() local 21 const int size1 = sizeof(str1); in test_varlen() 37 memcpy(bss->buf_in1, str1, size1); in test_varlen()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A D | probe_read_user_str.c | 5 static const char str1[] = "mestring"; variable 62 if (test_one_str(skel, str1, sizeof(str1))) in test_probe_read_user_str()
|
H A D | varlen.c | 18 const char str1[] = "Hello, "; in test_varlen() local 21 const int size1 = sizeof(str1); in test_varlen() 37 memcpy(bss->buf_in1, str1, size1); in test_varlen()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | test_global_data.c | 48 static char str1[32] = "abcdefghijklmnopqrstuvwxyz"; variable 88 test_reloc(string, 1, str1); in load_static_data() 90 str1[5] = 'x'; in load_static_data() 91 test_reloc(string, 3, str1); in load_static_data()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | test_global_data.c | 48 static char str1[32] = "abcdefghijklmnopqrstuvwxyz"; variable 88 test_reloc(string, 1, str1); in load_static_data() 90 str1[5] = 'x'; in load_static_data() 91 test_reloc(string, 3, str1); in load_static_data()
|
H A D | test_snprintf.c | 43 static const char str1[] = "str1"; in handler() local 64 str1, 'a', 'b', 'c', 'd', 'e', longstr); in handler()
|
/kernel/linux/linux-5.10/arch/arm64/lib/ |
H A D | copy_template.S | 67 str1 tmp1w, dst, #4 71 str1 tmp1, dst, #8 112 str1 tmp1, dst, #8 116 str1 tmp1w, dst, #4
|
/kernel/linux/linux-6.6/arch/arm64/lib/ |
H A D | copy_template.S | 67 str1 tmp1w, dst, #4 71 str1 tmp1, dst, #8 112 str1 tmp1, dst, #8 116 str1 tmp1w, dst, #4
|
/kernel/liteos_a/lib/libc/musl/src/ |
H A D | memcmp.c | 37 int memcmp(const void *str1, const void *str2, size_t n) in memcmp() argument 40 const unsigned char *s1 = str1; in memcmp()
|
/kernel/liteos_a/testsuites/unittest/libc/sys/smoke/ |
H A D | sys_test_029.cpp | 39 char *str1 = "/storage/1"; in TestCase() local 43 ret1 = ftok(str1, id); in TestCase()
|
/kernel/liteos_a/testsuites/unittest/libc/io/smoke/ |
H A D | IO_test_008.cpp | 48 CHAR *str1 = "123456789"; in Testcase() local 70 ICUNIT_GOTO_STRING_EQUAL(buffer, str1, buffer, EXIT2); in Testcase()
|
/kernel/linux/linux-5.10/drivers/md/ |
H A D | md-autodetect.c | 64 char *str1; in md_setup() local 75 str1 = str; in md_setup() 107 str = str1; in md_setup()
|
/kernel/linux/linux-6.6/drivers/md/ |
H A D | md-autodetect.c | 64 char *str1; in md_setup() local 75 str1 = str; in md_setup() 107 str = str1; in md_setup()
|
/kernel/linux/linux-5.10/arch/loongarch/boot/compressed/ |
H A D | string.c | 72 int __weak strcmp(const char *str1, const char *str2) in strcmp() argument 75 const unsigned char *s1 = (const unsigned char *)str1; in strcmp()
|
/kernel/linux/linux-6.6/tools/lib/bpf/ |
H A D | strset.c | 33 const char *str1 = s->strs_data + key1; in strset_equal_fn() local 36 return strcmp(str1, str2) == 0; in strset_equal_fn()
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/cell/ |
H A D | cbe_thermal.c | 300 union spe_reg str1; in init_default_values() local 319 /* str1 in init_default_values() 322 str1.val = 0x1010101010101010ull; in init_default_values() 355 out_be64(&pmd_regs->tm_str1.val, str1.val); in init_default_values()
|
/kernel/linux/linux-6.6/arch/powerpc/platforms/cell/ |
H A D | cbe_thermal.c | 299 union spe_reg str1; in init_default_values() local 318 /* str1 in init_default_values() 321 str1.val = 0x1010101010101010ull; in init_default_values() 354 out_be64(&pmd_regs->tm_str1.val, str1.val); in init_default_values()
|