Home
last modified time | relevance | path

Searched refs:str1 (Results 1 – 25 of 45) sorted by relevance

12

/kernel/liteos_a/testsuites/unittest/common/include/
DiCunit.h221 #define ICUNIT_ASSERT_SIZE_STRING_EQUAL(str1, str2, strsize, retcode) \ argument
223 if (strncmp((str1), (str2), (strsize)) != 0) { \
246 #define ICUNIT_ASSERT_SIZE_STRING_EQUAL_VOID(str1, str2, size, retcode) \ argument
248 if (strncmp(str1, str2, size) != 0) { \
257 #define ICUNIT_ASSERT_SIZE_STRING_NOT_EQUAL(str1, str2, size, retcode) \ argument
259 if (strncmp(str1, str2, size) == 0) { \
269 #define ICUNIT_ASSERT_STRING_EQUAL(str1, str2, retcode) \ argument
271 if (strcmp(str1, str2) != 0) { \
280 #define ICUNIT_ASSERT_STRING_EQUAL_VOID(str1, str2, retcode) \ argument
282 if (strcmp(str1, str2) != 0) { \
[all …]
/kernel/liteos_m/testsuites/include/
DiCunit.h284 #define ICUNIT_ASSERT_SIZE_STRING_EQUAL(str1, str2, strsize, retcode) \ argument
286 if (strncmp((str1), (str2), (strsize)) != 0) { \
292 #define ICUNIT_ASSERT_STRING_EQUAL(str1, str2, retcode) \ argument
294 if (strcmp(str1, str2) != 0) { \
300 #define ICUNIT_ASSERT_STRING_EQUAL_VOID(str1, str2, retcode) \ argument
302 if (strcmp((const char *)str1, (const char *)str2) != 0) { \
308 #define ICUNIT_ASSERT_STRING_NOT_EQUAL(str1, str2, retcode) \ argument
310 if (strcmp(str1, str2) == 0) { \
332 #define ICUNIT_GOTO_STRING_EQUAL(str1, str2, retcode, label) \ argument
334 if (strcmp(str1, str2) != 0) { \
[all …]
/kernel/liteos_a/testsuites/unittest/libc/sys/full/
Dsys_test_027.cpp43 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/
DiCunit.h327 #define ICUNIT_ASSERT_SIZE_STRING_EQUAL(str1, str2, strsize, retcode) \ argument
329 if (strncmp((str1), (str2), (strsize)) != 0) { \
343 #define ICUNIT_ASSERT_STRING_EQUAL(str1, str2, retcode) \ argument
345 if (strcmp(str1, str2) != 0) { \
351 #define ICUNIT_ASSERT_STRING_EQUAL_VOID(str1, str2, retcode) \ argument
353 if (strcmp(str1, str2) != 0) { \
359 #define ICUNIT_ASSERT_STRING_NOT_EQUAL(str1, str2, retcode) \ argument
361 if (strcmp(str1, str2) == 0) { \
399 #define ICUNIT_GOTO_STRING_EQUAL(str1, str2, retcode, label) \ argument
401 if (strcmp(str1, str2) != 0) { \
[all …]
/kernel/liteos_a/testsuites/unittest/net/resolv/smoke/
Dnet_resolv_test_006.cpp47 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()
Dnet_resolv_test_007.cpp47 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()
/kernel/liteos_m/testsuites/unittest/fuzz/src/regex/
Dit_test_regex_fuzz.c61 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/progs/
Dtest_global_data.c48 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-5.10/tools/testing/selftests/bpf/prog_tests/
Dprobe_read_user_str.c5 static const char str1[] = "mestring"; variable
62 if (test_one_str(skel, str1, sizeof(str1))) in test_probe_read_user_str()
Dvarlen.c18 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/liteos_a/testsuites/unittest/libc/sys/smoke/
Dsys_test_029.cpp39 char *str1 = "/storage/1"; in TestCase() local
43 ret1 = ftok(str1, id); in TestCase()
/kernel/linux/linux-5.10/arch/arm64/lib/
Dcopy_template.S67 str1 tmp1w, dst, #4
71 str1 tmp1, dst, #8
112 str1 tmp1, dst, #8
116 str1 tmp1w, dst, #4
Dmemcpy.S47 .macro str1 reg, ptr, val macro
Dcopy_to_user.S42 .macro str1 reg, ptr, val macro
Dcopy_from_user.S43 .macro str1 reg, ptr, val macro
Dcopy_in_user.S44 .macro str1 reg, ptr, val macro
/kernel/liteos_a/lib/libc/musl/src/
Dmemcmp.c37 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/io/smoke/
DIO_test_008.cpp48 CHAR *str1 = "123456789"; in Testcase() local
70 ICUNIT_GOTO_STRING_EQUAL(buffer, str1, buffer, EXIT2); in Testcase()
/kernel/linux/linux-5.10/drivers/md/
Dmd-autodetect.c64 char *str1; in md_setup() local
75 str1 = str; in md_setup()
107 str = str1; in md_setup()
/kernel/linux/linux-5.10/arch/powerpc/platforms/cell/
Dcbe_thermal.c300 union spe_reg str1; in init_default_values() local
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-5.10/arch/x86/boot/
Dstring.c48 int strcmp(const char *str1, const char *str2) in strcmp() argument
50 const unsigned char *s1 = (const unsigned char *)str1; in strcmp()
Dstring.h19 extern int strcmp(const char *str1, const char *str2);
/kernel/liteos_a/lib/libc/musl/src/arch/arm/
Dmemcmp.S39 @ r0 = str1
55 ldrb r3, [r0] @ r3 = *str1
/kernel/linux/linux-5.10/arch/arc/lib/
Dstrcmp-archs.S21 ;; Detect NULL char in str1
/kernel/linux/linux-5.10/tools/power/x86/intel-speed-select/
Disst.h212 unsigned int val, char *str0, char *str1);

12