Home
last modified time | relevance | path

Searched refs:ICUNIT_ASSERT_STRING_EQUAL (Results 1 – 25 of 48) sorted by relevance

12

/kernel/liteos_m/testsuites/unittest/xts/io/
Dxts_io_stdlib_test.c55 ICUNIT_ASSERT_STRING_EQUAL(endPtr, " hello", endPtr);
59 ICUNIT_ASSERT_STRING_EQUAL(endPtr, " ===", endPtr);
63 ICUNIT_ASSERT_STRING_EQUAL(endPtr, " this 123", endPtr);
67 ICUNIT_ASSERT_STRING_EQUAL(endPtr, "this is string", endPtr);
81 ICUNIT_ASSERT_STRING_EQUAL(endPtr, " hello", endPtr);
85 ICUNIT_ASSERT_STRING_EQUAL(endPtr, " ===", endPtr);
89 ICUNIT_ASSERT_STRING_EQUAL(endPtr, " this 123", endPtr);
93 ICUNIT_ASSERT_STRING_EQUAL(endPtr, "this is string", endPtr);
106 ICUNIT_ASSERT_STRING_EQUAL(endPtr, " hello", endPtr);
109 ICUNIT_ASSERT_STRING_EQUAL(endPtr, " ===", endPtr);
[all …]
Dxts_io_string_test.c94 ICUNIT_ASSERT_STRING_EQUAL(dest, src, dest);
100 ICUNIT_ASSERT_STRING_EQUAL(destT, srcT, destT);
114 ICUNIT_ASSERT_STRING_EQUAL(ret, "", ret);
115 ICUNIT_ASSERT_STRING_EQUAL(dest, "hello", dest);
120 ICUNIT_ASSERT_STRING_EQUAL(ret, "", ret);
121 ICUNIT_ASSERT_STRING_EQUAL(destT, "~!@#$%%^&*()_+", destT);
205 ICUNIT_ASSERT_STRING_EQUAL(ret, "!! world", ret);
208 ICUNIT_ASSERT_STRING_EQUAL(ret, NULL, ret);
221 ICUNIT_ASSERT_STRING_EQUAL(ret, "& WORLD", ret);
224 ICUNIT_ASSERT_STRING_EQUAL(ret, NULL, ret);
[all …]
Dxts_io_other_test.c55 ICUNIT_ASSERT_STRING_EQUAL(ret, "abc", ret);
63 ICUNIT_ASSERT_STRING_EQUAL(ret, "", ret);
/kernel/liteos_a/testsuites/unittest/net/netdb/full/
Dnet_netdb_test_018.cpp63 ICUNIT_ASSERT_STRING_EQUAL(se1->s_name, "tcpmux", -1); in GetServEntTest()
64 ICUNIT_ASSERT_STRING_EQUAL(se1->s_proto, "tcp", -1); in GetServEntTest()
70 ICUNIT_ASSERT_STRING_EQUAL(se1->s_name, se2->s_name, -1); in GetServEntTest()
71 ICUNIT_ASSERT_STRING_EQUAL(se1->s_proto, se2->s_proto, -1); in GetServEntTest()
77 ICUNIT_ASSERT_STRING_EQUAL(se1->s_name, se3->s_name, -1); in GetServEntTest()
78 ICUNIT_ASSERT_STRING_EQUAL(se1->s_proto, se3->s_proto, -1); in GetServEntTest()
83 ICUNIT_ASSERT_STRING_EQUAL(se3->s_name, "echo", -1); in GetServEntTest()
84 ICUNIT_ASSERT_STRING_EQUAL(se3->s_proto, "tcp", -1); in GetServEntTest()
89 ICUNIT_ASSERT_STRING_EQUAL(se3->s_name, "echo", -1); in GetServEntTest()
90 ICUNIT_ASSERT_STRING_EQUAL(se3->s_proto, "udp", -1); in GetServEntTest()
[all …]
Dnet_netdb_test_019.cpp58 ICUNIT_ASSERT_STRING_EQUAL(se1->h_name, "localhost", -1); in GetHostEntTest()
61ICUNIT_ASSERT_STRING_EQUAL("127.0.0.1", inet_ntop(AF_INET, se1->h_addr_list[0], addr, INET_ADDRSTR… in GetHostEntTest()
67 ICUNIT_ASSERT_STRING_EQUAL(se1->h_name, se2->h_name, -1); in GetHostEntTest()
74 ICUNIT_ASSERT_STRING_EQUAL(se1->h_name, se3->h_name, -1); in GetHostEntTest()
81 ICUNIT_ASSERT_STRING_EQUAL(se3->h_name, "ip6-localhost", -1); in GetHostEntTest()
83ICUNIT_ASSERT_STRING_EQUAL("::1", inet_ntop(AF_INET6, se3->h_addr_list[0], addr, INET6_ADDRSTRLEN)… in GetHostEntTest()
88 ICUNIT_ASSERT_STRING_EQUAL(se3->h_name, "example", -1); in GetHostEntTest()
89ICUNIT_ASSERT_STRING_EQUAL("10.0.0.0", inet_ntop(AF_INET, se3->h_addr_list[0], addr, INET_ADDRSTRL… in GetHostEntTest()
90 ICUNIT_ASSERT_STRING_EQUAL(se3->h_aliases[0], "example.com", -1); in GetHostEntTest()
91 ICUNIT_ASSERT_STRING_EQUAL(se3->h_aliases[1], "example.cn", -1); in GetHostEntTest()
Dnet_netdb_test_016.cpp57 ICUNIT_ASSERT_STRING_EQUAL(se1->s_name, "discard", -1); in GetServByNameTest()
58 ICUNIT_ASSERT_STRING_EQUAL(se1->s_proto, "tcp", -1); in GetServByNameTest()
59 ICUNIT_ASSERT_STRING_EQUAL(se1->s_aliases[0], "discard", -1); in GetServByNameTest()
63 ICUNIT_ASSERT_STRING_EQUAL(se1->s_name, "ssh", -1); in GetServByNameTest()
64 ICUNIT_ASSERT_STRING_EQUAL(se1->s_proto, "tcp", -1); in GetServByNameTest()
65 ICUNIT_ASSERT_STRING_EQUAL(se1->s_aliases[0], "ssh", -1); in GetServByNameTest()
Dnet_netdb_test_017.cpp56 ICUNIT_ASSERT_STRING_EQUAL(se.s_name, "ssh", -1); in GetServByNameRTest()
57 ICUNIT_ASSERT_STRING_EQUAL(se.s_proto, "tcp", -1); in GetServByNameRTest()
58 ICUNIT_ASSERT_STRING_EQUAL(se.s_aliases[0], "ssh", -1); in GetServByNameRTest()
59 ICUNIT_ASSERT_STRING_EQUAL(result->s_name, "ssh", -1); in GetServByNameRTest()
60 ICUNIT_ASSERT_STRING_EQUAL(result->s_proto, "tcp", -1); in GetServByNameRTest()
61 ICUNIT_ASSERT_STRING_EQUAL(result->s_aliases[0], "ssh", -1); in GetServByNameRTest()
Dnet_netdb_test_012.cpp57 ICUNIT_ASSERT_STRING_EQUAL(se.s_name, "ssh", -1); in GetServByPortRTest()
58 ICUNIT_ASSERT_STRING_EQUAL(se.s_proto, "tcp", -1); in GetServByPortRTest()
59 ICUNIT_ASSERT_STRING_EQUAL(se.s_aliases[0], "ssh", -1); in GetServByPortRTest()
60 ICUNIT_ASSERT_STRING_EQUAL(result->s_name, "ssh", -1); in GetServByPortRTest()
61 ICUNIT_ASSERT_STRING_EQUAL(result->s_proto, "tcp", -1); in GetServByPortRTest()
62 ICUNIT_ASSERT_STRING_EQUAL(result->s_aliases[0], "ssh", -1); in GetServByPortRTest()
Dnet_netdb_test_020.cpp55 ICUNIT_ASSERT_STRING_EQUAL(se1->n_name, "link-local", -1); in GetNetEntTest()
63 ICUNIT_ASSERT_STRING_EQUAL(se1->n_name, se2->n_name, -1); in GetNetEntTest()
70 ICUNIT_ASSERT_STRING_EQUAL(se1->n_name, se3->n_name, -1); in GetNetEntTest()
76 ICUNIT_ASSERT_STRING_EQUAL(se1->n_name, "example", -1); in GetNetEntTest()
79 ICUNIT_ASSERT_STRING_EQUAL(se1->n_aliases[0], "network", -1); in GetNetEntTest()
80 ICUNIT_ASSERT_STRING_EQUAL(se1->n_aliases[1], "example-network", -1); in GetNetEntTest()
Dnet_netdb_test_011.cpp53 ICUNIT_ASSERT_STRING_EQUAL(se->s_name, "ssh", -1); in GetServByPortTest()
54 ICUNIT_ASSERT_STRING_EQUAL(se->s_proto, "tcp", -1); in GetServByPortTest()
55 ICUNIT_ASSERT_STRING_EQUAL(se->s_aliases[0], "ssh", -1); in GetServByPortTest()
Dnet_netdb_test_004.cpp54 ICUNIT_ASSERT_STRING_EQUAL(addr->h_name, "localhost", -1); in GetHostByAddrTest()
61 ICUNIT_ASSERT_STRING_EQUAL(addr->h_name, "example.com", -1); in GetHostByAddrTest()
/kernel/liteos_m/testsuites/unittest/posix/src/errno/
Dstrerror_test.c82 ICUNIT_ASSERT_STRING_EQUAL(strerror(-1), "No error information", -1);
84 ICUNIT_ASSERT_STRING_EQUAL(strerror(0), "No error information", 0);
86 ICUNIT_ASSERT_STRING_EQUAL(strerror(2), "No such file or directory", 2);
88 ICUNIT_ASSERT_STRING_EQUAL(strerror(10), "No child process", 10);
92 ICUNIT_ASSERT_STRING_EQUAL(strerror(0), "Success", 0);
94 ICUNIT_ASSERT_STRING_EQUAL(strerror(2), "No such file or directory", 2);
96 ICUNIT_ASSERT_STRING_EQUAL(strerror(10), "No children", 10);
/kernel/liteos_m/testsuites/unittest/posix/src/time/
Dtime_func_test_01.c204ICUNIT_ASSERT_STRING_EQUAL("1970/1/1 05:14:40 WEEK(4)", TmToStr(timePtr, timeStr, TIME_STR_LEN), 0…
209ICUNIT_ASSERT_STRING_EQUAL("2038/1/19 03:14:07 WEEK(2)", TmToStr(timePtr, timeStr, TIME_STR_LEN), …
214ICUNIT_ASSERT_STRING_EQUAL("2038/1/19 03:14:06 WEEK(2)", TmToStr(timePtr, timeStr, TIME_STR_LEN), …
219ICUNIT_ASSERT_STRING_EQUAL("1901/12/13 20:45:52 WEEK(5)", TmToStr(timePtr, timeStr, TIME_STR_LEN),…
224ICUNIT_ASSERT_STRING_EQUAL("1901/12/13 20:45:53 WEEK(5)", TmToStr(timePtr, timeStr, TIME_STR_LEN),…
253 ICUNIT_ASSERT_STRING_EQUAL(cTime, "07:59:59", 0);
257 ICUNIT_ASSERT_STRING_EQUAL(cTime, "08:00:01", 0);
273 ICUNIT_ASSERT_STRING_EQUAL(cTime, "38-01-19 11:14:07", 0);
279 ICUNIT_ASSERT_STRING_EQUAL(cTime, "01-12-14 04:45:52", 0);
285 ICUNIT_ASSERT_STRING_EQUAL(cTime, "70-01-01 08:00:00", 0);
[all …]
/kernel/liteos_m/testsuites/unittest/posix/src/stdlib/
Dstrtol_test.c84 ICUNIT_ASSERT_STRING_EQUAL(endPtr16, "", 0);
104 ICUNIT_ASSERT_STRING_EQUAL(endPtr16, "", 0);
124 ICUNIT_ASSERT_STRING_EQUAL(endPtr10, "", 0);
144 ICUNIT_ASSERT_STRING_EQUAL(endPtr10, "", 0);
164 ICUNIT_ASSERT_STRING_EQUAL(endPtr10_3, "", 0);
184 ICUNIT_ASSERT_STRING_EQUAL(endPtr8, "", 0);
204 ICUNIT_ASSERT_STRING_EQUAL(endPtr8_2, "", 0);
224 ICUNIT_ASSERT_STRING_EQUAL(endPtr8_3, "", 0);
244 ICUNIT_ASSERT_STRING_EQUAL(endPtr2, "", 0);
264 ICUNIT_ASSERT_STRING_EQUAL(endPtr, " 0110 0XDEFE 0666 -1.6", 0);
[all …]
Dstrtoull_test.c86 ICUNIT_ASSERT_STRING_EQUAL(endPtr, " 0110 0XDEFE 0666 1.6", 0);
106 ICUNIT_ASSERT_STRING_EQUAL(endPtr, " 0XDEFE 0666 1.6", 0);
126 ICUNIT_ASSERT_STRING_EQUAL(endPtr, " 0666 1.6", 0);
146 ICUNIT_ASSERT_STRING_EQUAL(endPtr, " 1.6", 0);
167 ICUNIT_ASSERT_STRING_EQUAL(endPtr, " 1.6", 0);
188 ICUNIT_ASSERT_STRING_EQUAL(endPtr, ".6", 0);
208 ICUNIT_ASSERT_STRING_EQUAL(endPtr, " 18446744073709551616", 0);
230 ICUNIT_ASSERT_STRING_EQUAL(endPtr, "", 0);
250 ICUNIT_ASSERT_STRING_EQUAL(endPtr, " 0666", 0);
270 ICUNIT_ASSERT_STRING_EQUAL(endPtr, "", 0);
Dstrtoul_test.c85 ICUNIT_ASSERT_STRING_EQUAL(endPtr, " 0110 0XDEFE 0666 4294967295 4294967296 12.34", 0);
105 ICUNIT_ASSERT_STRING_EQUAL(endPtr, " 0XDEFE 0666 4294967295 4294967296 12.34", 0);
125 ICUNIT_ASSERT_STRING_EQUAL(endPtr, " 0666 4294967295 4294967296 12.34", 0);
145 ICUNIT_ASSERT_STRING_EQUAL(endPtr, " 4294967295 4294967296 12.34", 0);
165 ICUNIT_ASSERT_STRING_EQUAL(endPtr, " 4294967296 12.34", 0);
186 ICUNIT_ASSERT_STRING_EQUAL(endPtr, " 12.34", 0);
207 ICUNIT_ASSERT_STRING_EQUAL(endPtr, " 12.34", 0);
228 ICUNIT_ASSERT_STRING_EQUAL(endPtr, ".34", 0);
248 ICUNIT_ASSERT_STRING_EQUAL(endPtr, " 0666", 0);
268 ICUNIT_ASSERT_STRING_EQUAL(endPtr, "", 0);
/kernel/liteos_m/testsuites/unittest/xts/sys/
Dsys_api_test.c53ICUNIT_ASSERT_STRING_EQUAL(strerror(-1), "No error information", strerror(-1)); /* -1, common data…
54 ICUNIT_ASSERT_STRING_EQUAL(strerror(0), "No error information", strerror(0));
55ICUNIT_ASSERT_STRING_EQUAL(strerror(2), "No such file or directory", strerror(2)); /* 2, common da…
56ICUNIT_ASSERT_STRING_EQUAL(strerror(10), "No child process", strerror(10)); /* 10, common data for…
57ICUNIT_ASSERT_STRING_EQUAL(strerror(65536), "No error information", strerror(65536)); /* 65536, co…
/kernel/liteos_a/testsuites/unittest/libc/io/full/
DIO_test_duplocale_001.cpp85 ICUNIT_ASSERT_STRING_EQUAL(retptr, "/storage", -1); in SonFunc()
89 ICUNIT_ASSERT_STRING_EQUAL(retptr, "en_US.UTF-8", -1); in SonFunc()
93 ICUNIT_ASSERT_STRING_EQUAL(buffer, "Fri Jan 2 01:03:32 1970", -1); in SonFunc()
97 ICUNIT_ASSERT_STRING_EQUAL(retptr, "zh_CN.UTF-8", -1); in SonFunc()
101 ICUNIT_ASSERT_STRING_EQUAL(buffer, "星期五 一月 2 01:03:32 1970", -1); in SonFunc()
105 ICUNIT_ASSERT_STRING_EQUAL(retptr, "C", -1); in SonFunc()
109 ICUNIT_ASSERT_STRING_EQUAL(buffer, "Fri Jan 2 01:03:32 1970", -1); in SonFunc()
DIO_test_dcngettext_002.cpp48 ICUNIT_ASSERT_STRING_EQUAL(s, "TestString1:Hello world!\n", s); in testcase1()
55 ICUNIT_ASSERT_STRING_EQUAL(s, "TestString2:Hello world!\n", s); in testcase1()
76 ICUNIT_ASSERT_STRING_EQUAL(s, "TestString1:Hello world!\n", s); in testcase2()
83 ICUNIT_ASSERT_STRING_EQUAL(s, "TestString2:Hello world!\n", s); in testcase2()
DIO_test_dngettext_002.cpp48 ICUNIT_ASSERT_STRING_EQUAL(s, "TestString1:Hello world!\n", s); in testcase1()
55 ICUNIT_ASSERT_STRING_EQUAL(s, "TestString2:Hello world!\n", s); in testcase1()
76 ICUNIT_ASSERT_STRING_EQUAL(s, "TestString1:Hello world!\n", s); in testcase2()
83 ICUNIT_ASSERT_STRING_EQUAL(s, "TestString2:Hello world!\n", s); in testcase2()
DIO_test_dngettext_001.cpp49 ICUNIT_ASSERT_STRING_EQUAL(s, "TestString1\n", s); in testcase()
53 ICUNIT_ASSERT_STRING_EQUAL(s, "TestString2\n", s); in testcase()
DIO_test_dcngettext_001.cpp49 ICUNIT_ASSERT_STRING_EQUAL(s, "TestString1\n", s); in testcase()
53 ICUNIT_ASSERT_STRING_EQUAL(s, "TestString2\n", s); in testcase()
/kernel/liteos_a/testsuites/unittest/libc/sys/full/
Dsys_test_025.cpp51 ICUNIT_ASSERT_STRING_EQUAL(getNam2->gr_name, "root", getNam2->gr_name); in TestCase0()
52 ICUNIT_ASSERT_STRING_EQUAL(getNam2->gr_passwd, "x", getNam2->gr_passwd); in TestCase0()
57 ICUNIT_ASSERT_STRING_EQUAL(groupRet->gr_name, "root", groupRet->gr_name); in TestCase0()
58 ICUNIT_ASSERT_STRING_EQUAL(groupRet->gr_passwd, "x", groupRet->gr_passwd); in TestCase0()
63 ICUNIT_ASSERT_STRING_EQUAL(groupRet->gr_name, "root", groupRet->gr_name); in TestCase0()
64 ICUNIT_ASSERT_STRING_EQUAL(groupRet->gr_passwd, "x", groupRet->gr_passwd); in TestCase0()
70 ICUNIT_ASSERT_STRING_EQUAL(getData2->gr_name, "root", getData2->gr_name); in TestCase0()
71 ICUNIT_ASSERT_STRING_EQUAL(getData2->gr_passwd, "x", getData2->gr_passwd); in TestCase0()
/kernel/liteos_m/testsuites/unittest/posix/src/string/
Dstrstr_test.c83 ICUNIT_ASSERT_STRING_EQUAL(ret, destS, 0);
103 ICUNIT_ASSERT_STRING_EQUAL(ret, "this is string", 0);
123 ICUNIT_ASSERT_STRING_EQUAL(ret, dest, 0);
183 ICUNIT_ASSERT_STRING_EQUAL(ret, "tring this is string", 0);
223 ICUNIT_ASSERT_STRING_EQUAL(ret, "this is string", 0);
263 ICUNIT_ASSERT_STRING_EQUAL(ret, "this is string", 0);
303 ICUNIT_ASSERT_STRING_EQUAL(ret, "this is string", 0);
/kernel/liteos_a/testsuites/unittest/libc/sys/smoke/
Dsys_test_031.cpp40 ICUNIT_ASSERT_STRING_EQUAL(buf1, "/dev/tty", -1); in TestCase()
42 ICUNIT_ASSERT_STRING_EQUAL(str, "/dev/tty", -1); in TestCase()

12