/kernel/liteos_a/testsuites/unittest/libc/misc/full/ |
D | misc_test_009.cpp | 37 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/ |
D | net_resolv_test_008.cpp | 39 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()
|
D | net_resolv_test_004.cpp | 38 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/ |
D | sys_test_023.cpp | 41 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()
|
D | sys_test_022.cpp | 38 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()
|
D | sys_test_020.cpp | 40 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()
|
D | sys_test_018.cpp | 40 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()
|
D | sys_test_025.cpp | 111 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/ |
D | It_stdio_hasmntopt_001.cpp | 46 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()
|
D | IO_test_duplocale_001.cpp | 120 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/ |
D | net_netdb_test_011.cpp | 39 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()
|
D | net_netdb_test_021.cpp | 37 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()
|
D | net_netdb_test_002.cpp | 39 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()
|
D | net_netdb_test_022.cpp | 37 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()
|
D | net_netdb_test_006.cpp | 38 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()
|
D | net_netdb_test_016.cpp | 42 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()
|
D | net_netdb_test_008.cpp | 38 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()
|
D | net_netdb_test_004.cpp | 38 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()
|
D | net_netdb_test_017.cpp | 36 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()
|
D | net_netdb_test_012.cpp | 39 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()
|
D | net_netdb_test_007.cpp | 38 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()
|
D | net_netdb_test_009.cpp | 37 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()
|
D | net_netdb_test_020.cpp | 39 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()
|
D | net_netdb_test_018.cpp | 42 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/ |
D | osTest.cpp | 132 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()
|