Home
last modified time | relevance | path

Searched refs:pathList (Results 1 – 25 of 29) sorted by relevance

12

/kernel/liteos_a/testsuites/unittest/libc/misc/full/
Dmisc_test_009.cpp37 CHAR *pathList[] = {"/etc/hosts"}; in TestCase() local
41 ret = PrepareFileEnv(pathList, streamList, streamLen, 1); in TestCase()
44 (VOID)RecoveryFileEnv(pathList, 1); in TestCase()
50 (VOID)RecoveryFileEnv(pathList, 1); in TestCase()
54 (VOID)RecoveryFileEnv(pathList, 1); in TestCase()
/kernel/liteos_a/testsuites/unittest/net/resolv/full/
Dnet_resolv_test_008.cpp39 char *pathList[] = {"/etc/ethers"}; in EtherNtohostTest() local
43 int flag = PrepareFileEnv(pathList, streamList, streamLen, file_number); in EtherNtohostTest()
45 RecoveryFileEnv(pathList, file_number); in EtherNtohostTest()
56 RecoveryFileEnv(pathList, file_number); in EtherNtohostTest()
Dnet_resolv_test_004.cpp38 char *pathList[] = {"/etc/ethers"}; in EtherHosttonTest() local
42 int flag = PrepareFileEnv(pathList, streamList, streamLen, file_number); in EtherHosttonTest()
44 RecoveryFileEnv(pathList, file_number); in EtherHosttonTest()
59 RecoveryFileEnv(pathList, file_number); in EtherHosttonTest()
/kernel/liteos_a/testsuites/unittest/libc/sys/full/
Dsys_test_023.cpp41 CHAR *pathList[] = {"/etc/group"}; in TestCase() local
45 ret = PrepareFileEnv(pathList, streamList, streamLen, 1); in TestCase()
48 (VOID)RecoveryFileEnv(pathList, 1); in TestCase()
77 (VOID)RecoveryFileEnv(pathList, 1); in TestCase()
81 (VOID)RecoveryFileEnv(pathList, 1); in TestCase()
Dsys_test_022.cpp38 CHAR *pathList[] = {"/etc/group", "/etc/passwd"}; in TestCase() local
42 ret = PrepareFileEnv(pathList, streamList, streamLen, 2); /* 2, group & passwd */ in TestCase()
45 (VOID)RecoveryFileEnv(pathList, 2); /* 2, group & passwd */ in TestCase()
85 (VOID)RecoveryFileEnv(pathList, 2); /* 2, group & passwd */ in TestCase()
89 (VOID)RecoveryFileEnv(pathList, 2); /* 2, group & passwd */ in TestCase()
Dsys_test_020.cpp40 CHAR *pathList[] = {"/etc/group", "/etc/passwd"}; in TestCase() local
44 ret = PrepareFileEnv(pathList, streamList, streamLen, 2); /* 2, group & passwd */ in TestCase()
47 (VOID)RecoveryFileEnv(pathList, 2); /* 2, group & passwd */ in TestCase()
90 (VOID)RecoveryFileEnv(pathList, 2); /* 2, group & passwd */ in TestCase()
93 (VOID)RecoveryFileEnv(pathList, 2); /* 2, group & passwd */ in TestCase()
Dsys_test_018.cpp40 CHAR *pathList[] = {"/etc/group", "/etc/passwd"}; in TestCase() local
44 ret = PrepareFileEnv(pathList, streamList, streamLen, 2); /* 2, group & passwd */ in TestCase()
47 (VOID)RecoveryFileEnv(pathList, 2); /* 2, group & passwd */ in TestCase()
88 (VOID)RecoveryFileEnv(pathList, 2); /* 2, group & passwd */ in TestCase()
91 (VOID)RecoveryFileEnv(pathList, 2); /* 2, group & passwd */ in TestCase()
Dsys_test_025.cpp111 CHAR *pathList[] = {"/etc/group"}; in TestCase() local
115 INT32 ret = PrepareFileEnv(pathList, streamList, streamLen, 1); in TestCase()
118 (VOID)RecoveryFileEnv(pathList, 1); in TestCase()
128 (VOID)RecoveryFileEnv(pathList, 1); in TestCase()
131 (VOID)RecoveryFileEnv(pathList, 1); in TestCase()
/kernel/liteos_a/testsuites/unittest/libc/io/full/
DIt_stdio_hasmntopt_001.cpp46 char *pathList[] = {"/etc/fstab"}; in testcase() local
50 int flag = PrepareFileEnv(pathList, streamList, streamLen, 1); in testcase()
53 (VOID)RecoveryFileEnv(pathList, 1); in testcase()
59 (VOID)RecoveryFileEnv(pathList, 1); in testcase()
104 (VOID)RecoveryFileEnv(pathList, 1); in testcase()
DIO_test_duplocale_001.cpp120 char *pathList[] = {"/storage/zh_CN.UTF-8"}; in testcase() local
128 ret = PrepareFileEnv(pathList, streamList, streamLen, 1); in testcase()
131 (VOID)RecoveryFileEnv(pathList, 1); in testcase()
143 (VOID)RecoveryFileEnv(pathList, 1); in testcase()
/kernel/liteos_a/testsuites/unittest/net/netdb/full/
Dnet_netdb_test_011.cpp39 char *pathList[] = {"/etc/services"}; in GetServByPortTest() local
43 int flag = PrepareFileEnv(pathList, streamList, streamLen, file_number); in GetServByPortTest()
45 RecoveryFileEnv(pathList, file_number); in GetServByPortTest()
60 RecoveryFileEnv(pathList, file_number); in GetServByPortTest()
Dnet_netdb_test_021.cpp37 char *pathList[] = {"/etc/networks"}; in GetNetBynametTest() local
41 int flag = PrepareFileEnv(pathList, streamList, streamLen, file_number); in GetNetBynametTest()
43 RecoveryFileEnv(pathList, file_number); in GetNetBynametTest()
63 RecoveryFileEnv(pathList, file_number); in GetNetBynametTest()
Dnet_netdb_test_002.cpp39 char *pathList[] = {"/etc/hosts", "/etc/services"}; in AddrInfoTest() local
43 int flag = PrepareFileEnv(pathList, streamList, streamLen, file_number); in AddrInfoTest()
45 RecoveryFileEnv(pathList, file_number); in AddrInfoTest()
64 RecoveryFileEnv(pathList, file_number); in AddrInfoTest()
Dnet_netdb_test_022.cpp37 char *pathList[] = {"/etc/networks"}; in GetNetByAddrtTest() local
41 int flag = PrepareFileEnv(pathList, streamList, streamLen, file_number); in GetNetByAddrtTest()
43 RecoveryFileEnv(pathList, file_number); in GetNetByAddrtTest()
63 RecoveryFileEnv(pathList, file_number); in GetNetByAddrtTest()
Dnet_netdb_test_006.cpp38 char *pathList[] = {"/etc/hosts"}; in GetHostByNameTest() local
41 int flag = PrepareFileEnv(pathList, streamList, streamLen, 1); in GetHostByNameTest()
43 RecoveryFileEnv(pathList, 1); in GetHostByNameTest()
62 RecoveryFileEnv(pathList, 1); in GetHostByNameTest()
Dnet_netdb_test_016.cpp42 char *pathList[] = {"/etc/services"}; in GetServByNameTest() local
46 int flag = PrepareFileEnv(pathList, streamList, streamLen, file_number); in GetServByNameTest()
48 RecoveryFileEnv(pathList, file_number); in GetServByNameTest()
73 RecoveryFileEnv(pathList, file_number); in GetServByNameTest()
Dnet_netdb_test_008.cpp38 char *pathList[] = {"/etc/hosts"}; in GetHostByName2Test() local
42 int flag = PrepareFileEnv(pathList, streamList, streamLen, file_number); in GetHostByName2Test()
44 RecoveryFileEnv(pathList, file_number); in GetHostByName2Test()
65 RecoveryFileEnv(pathList, file_number); in GetHostByName2Test()
Dnet_netdb_test_004.cpp38 char *pathList[] = {"/etc/hosts"}; in GetHostByAddrTest() local
42 int flag = PrepareFileEnv(pathList, streamList, streamLen, file_number); in GetHostByAddrTest()
44 RecoveryFileEnv(pathList, file_number); in GetHostByAddrTest()
68 RecoveryFileEnv(pathList, file_number); in GetHostByAddrTest()
Dnet_netdb_test_017.cpp36 char *pathList[] = {"/etc/services"}; in GetServByNameRTest() local
40 int flag = PrepareFileEnv(pathList, streamList, streamLen, file_number); in GetServByNameRTest()
42 RecoveryFileEnv(pathList, file_number); in GetServByNameRTest()
72 RecoveryFileEnv(pathList, file_number); in GetServByNameRTest()
Dnet_netdb_test_012.cpp39 char *pathList[] = {"/etc/services"}; in GetServByPortRTest() local
43 int flag = PrepareFileEnv(pathList, streamList, streamLen, file_number); in GetServByPortRTest()
45 RecoveryFileEnv(pathList, file_number); in GetServByPortRTest()
73 RecoveryFileEnv(pathList, file_number); in GetServByPortRTest()
Dnet_netdb_test_007.cpp38 char *pathList[] = {"/etc/hosts"}; in GetHostByNameRTest() local
42 int flag = PrepareFileEnv(pathList, streamList, streamLen, file_number); in GetHostByNameRTest()
44 RecoveryFileEnv(pathList, file_number); in GetHostByNameRTest()
74 RecoveryFileEnv(pathList, file_number); in GetHostByNameRTest()
Dnet_netdb_test_009.cpp37 char *pathList[] = {"/etc/hosts"}; in GetHostByName2RTest() local
41 int flag = PrepareFileEnv(pathList, streamList, streamLen, file_number); in GetHostByName2RTest()
43 RecoveryFileEnv(pathList, file_number); in GetHostByName2RTest()
73 RecoveryFileEnv(pathList, file_number); in GetHostByName2RTest()
Dnet_netdb_test_020.cpp39 char *pathList[] = {"/etc/networks"}; in GetNetEntTest() local
43 int flag = PrepareFileEnv(pathList, streamList, streamLen, file_number); in GetNetEntTest()
45 RecoveryFileEnv(pathList, file_number); in GetNetEntTest()
87 RecoveryFileEnv(pathList, file_number); in GetNetEntTest()
Dnet_netdb_test_018.cpp42 char *pathList[] = {"/etc/services"}; in GetServEntTest() local
46 int flag = PrepareFileEnv(pathList, streamList, streamLen, file_number); in GetServEntTest()
48 RecoveryFileEnv(pathList, file_number); in GetServEntTest()
106 RecoveryFileEnv(pathList, file_number); in GetServEntTest()
/kernel/liteos_a/testsuites/unittest/common/
DosTest.cpp132 UINT32 PrepareFileEnv(CHAR *pathList[], CHAR *streamList[], INT32 streamLen[], INT32 listCnt) in PrepareFileEnv() argument
136 UINT32 ret = access(pathList[i], 0); in PrepareFileEnv()
138 ret = memcpy_s(nameBuf, sizeof(nameBuf), pathList[i], strlen(pathList[i]) + 1); in PrepareFileEnv()
146 ret = rename(pathList[i], nameBuf); in PrepareFileEnv()
151 FILE *fp = fopen(pathList[i], "w"); in PrepareFileEnv()
168 UINT32 RecoveryFileEnv(CHAR *pathList[], INT32 listCnt) in RecoveryFileEnv() argument
173 ret = remove(pathList[i]); in RecoveryFileEnv()
177 ret = memcpy_s(nameBuf, sizeof(nameBuf), pathList[i], strlen(pathList[i]) + 1); in RecoveryFileEnv()
187 ret = rename(nameBuf, pathList[i]); in RecoveryFileEnv()

12