提交 f9d8f4d1 编写于 作者: N Neil Chen

fix: change `creat' to `create'

Signed-off-by: NNeil Chen <jingsi.chen@petalmail.com>
上级 0e108875
文件模式从 100755 更改为 100644
文件模式从 100755 更改为 100644
......@@ -58,10 +58,10 @@ static BOOL UtilsFileFuncTestSuiteTearDown(void)
/**
* @tc.number : SUB_UTILS_FILE_OPERATION_0100
* @tc.name : File operation for file creation and close with parameter RDONLY
* @tc.name : File operation for file create and close with parameter RDONLY
* @tc.desc : [C- SOFTWARE -0200]
*/
LITE_TEST_CASE(UtilsFileFuncTestSuite, testFileCreatAndClose001, Function | MediumTest | Level1)
LITE_TEST_CASE(UtilsFileFuncTestSuite, testFileCreateAndClose001, Function | MediumTest | Level1)
{
char* fileName = "testfile101";
int fd = UtilsFileOpen(fileName, O_RDONLY_FS | O_CREAT_FS, 0);
......@@ -73,10 +73,10 @@ LITE_TEST_CASE(UtilsFileFuncTestSuite, testFileCreatAndClose001, Function | Medi
/**
* @tc.number : SUB_UTILS_FILE_OPERATION_0200
* @tc.name : File operation for file creat and close with parameter WRONLY
* @tc.name : File operation for file create and close with parameter WRONLY
* @tc.desc : [C- SOFTWARE -0200]
*/
LITE_TEST_CASE(UtilsFileFuncTestSuite, testFileCreatAndClose002, Function | MediumTest | Level1)
LITE_TEST_CASE(UtilsFileFuncTestSuite, testFileCreateAndClose002, Function | MediumTest | Level1)
{
char* fileName = "testfile102";
int fd = UtilsFileOpen(fileName, O_WRONLY_FS | O_CREAT_FS, 0);
......@@ -88,10 +88,10 @@ LITE_TEST_CASE(UtilsFileFuncTestSuite, testFileCreatAndClose002, Function | Medi
/**
* @tc.number : SUB_UTILS_FILE_OPERATION_0300
* @tc.name : File operation for file creat and close with parameter RDWR
* @tc.name : File operation for file create and close with parameter RDWR
* @tc.desc : [C- SOFTWARE -0200]
*/
LITE_TEST_CASE(UtilsFileFuncTestSuite, testFileCreatAndClose003, Function | MediumTest | Level1)
LITE_TEST_CASE(UtilsFileFuncTestSuite, testFileCreateAndClose003, Function | MediumTest | Level1)
{
char* fileName = "testfile103";
int fd = UtilsFileOpen(fileName, O_RDWR_FS | O_CREAT_FS, 0);
......@@ -188,10 +188,10 @@ LITE_TEST_CASE(UtilsFileFuncTestSuite, testFileOpenAndClose005, Function | Mediu
/**
* @tc.number : SUB_UTILS_FILE_OPERATION_0900
* @tc.name : File operation for file creat and close with parameter RDONLY and EXCL
* @tc.name : File operation for file create and close with parameter RDONLY and EXCL
* @tc.desc : [C- SOFTWARE -0200]
*/
LITE_TEST_CASE(UtilsFileFuncTestSuite, testFileCreatAndClose004, Function | MediumTest | Level1)
LITE_TEST_CASE(UtilsFileFuncTestSuite, testFileCreateAndClose004, Function | MediumTest | Level1)
{
char* fileName = "testfile109";
int fd = UtilsFileOpen(fileName, O_RDONLY_FS | O_CREAT_FS | O_EXCL_FS, 0);
......@@ -207,10 +207,10 @@ LITE_TEST_CASE(UtilsFileFuncTestSuite, testFileCreatAndClose004, Function | Medi
/**
* @tc.number : SUB_UTILS_FILE_OPERATION_1000
* @tc.name : File operation for file creation and close with parameter WRONLY and EXCL
* @tc.name : File operation for file create and close with parameter WRONLY and EXCL
* @tc.desc : [C- SOFTWARE -0200]
*/
LITE_TEST_CASE(UtilsFileFuncTestSuite, testFileCreatAndClose005, Function | MediumTest | Level1)
LITE_TEST_CASE(UtilsFileFuncTestSuite, testFileCreateAndClose005, Function | MediumTest | Level1)
{
char* fileName = "testfile110";
int fd = UtilsFileOpen(fileName, O_WRONLY_FS | O_CREAT_FS | O_EXCL_FS, 0);
......@@ -226,7 +226,7 @@ LITE_TEST_CASE(UtilsFileFuncTestSuite, testFileCreatAndClose005, Function | Medi
/**
* @tc.number : SUB_UTILS_FILE_OPERATION_1100
* @tc.name : File operation for file creat and close with parameter RDWR and EXCL
* @tc.name : File operation for file create and close with parameter RDWR and EXCL
* @tc.desc : [C- SOFTWARE -0200]
*/
LITE_TEST_CASE(UtilsFileFuncTestSuite, testFileCreatAndClose006, Function | MediumTest | Level1)
......@@ -245,10 +245,10 @@ LITE_TEST_CASE(UtilsFileFuncTestSuite, testFileCreatAndClose006, Function | Medi
/**
* @tc.number : SUB_UTILS_FILE_OPERATION_1200
* @tc.name : File operation for file creation and close with parameter TRUNC and EXCL
* @tc.name : File operation for file create and close with parameter TRUNC and EXCL
* @tc.desc : [C- SOFTWARE -0200]
*/
LITE_TEST_CASE(UtilsFileFuncTestSuite, testFileCreatAndClose007, Function | MediumTest | Level1)
LITE_TEST_CASE(UtilsFileFuncTestSuite, testFileCreateAndClose007, Function | MediumTest | Level1)
{
char* fileName = "testfile112";
int fd = UtilsFileOpen(fileName, O_RDWR_FS | O_CREAT_FS | O_EXCL_FS | O_TRUNC_FS, 0);
......@@ -264,10 +264,10 @@ LITE_TEST_CASE(UtilsFileFuncTestSuite, testFileCreatAndClose007, Function | Medi
/**
* @tc.number : SUB_UTILS_FILE_OPERATION_1300
* @tc.name : File operation for file creation and close with parameter APPEND and EXCL
* @tc.name : File operation for file create and close with parameter APPEND and EXCL
* @tc.desc : [C- SOFTWARE -0200]
*/
LITE_TEST_CASE(UtilsFileFuncTestSuite, testFileCreatAndClose008, Function | MediumTest | Level1)
LITE_TEST_CASE(UtilsFileFuncTestSuite, testFileCreateAndClose008, Function | MediumTest | Level1)
{
char* fileName = "testfile113";
int fd = UtilsFileOpen(fileName, O_RDWR_FS | O_CREAT_FS | O_EXCL_FS | O_APPEND_FS, 0);
......@@ -322,10 +322,10 @@ LITE_TEST_CASE(UtilsFileFuncTestSuite, testFileWrite002, Function | MediumTest |
/**
* @tc.number : SUB_UTILS_FILE_OPERATION_1600
* @tc.name : Creat file with long file name
* @tc.name : Create file with long file name
* @tc.desc : [C- SOFTWARE -0200]
*/
LITE_TEST_CASE(UtilsFileFuncTestSuite, testCreatLongNameFile, Function | MediumTest | Level1)
LITE_TEST_CASE(UtilsFileFuncTestSuite, testCreateLongNameFile, Function | MediumTest | Level1)
{
char* fileName = "testLongFileName116-Ab123456789";
int fd = UtilsFileOpen(fileName, O_RDONLY_FS | O_CREAT_FS, 0);
......@@ -372,10 +372,10 @@ LITE_TEST_CASE(UtilsFileFuncTestSuite, testCloseNotExistFile, Function | MediumT
/**
* @tc.number : SUB_UTILS_FILE_OPERATION_2100
* @tc.name : Creat file with invalid long file name
* @tc.name : Create file with invalid long file name
* @tc.desc : [C- SOFTWARE -0200]
*/
LITE_TEST_CASE(UtilsFileFuncTestSuite, testCreatInvalidlongNameFile, Function | MediumTest | Level1)
LITE_TEST_CASE(UtilsFileFuncTestSuite, testCreateInvalidlongNameFile, Function | MediumTest | Level1)
{
char* fileName = "copyLongFileName403-Abcdefg123456789Abcdefg123456789Abcdefg123456789\
Abcdefg123456789Abcdefg123456789";
......
......@@ -57,10 +57,10 @@ static BOOL UtilsFileReliTestSuiteTearDown(void)
/**
* @tc.number : SUB_UTILS_FILE_OPERATION_5200
* @tc.name : Creat file after max files opened
* @tc.name : Create file after max files opened
* @tc.desc : [C- SOFTWARE -0200]
*/
LITE_TEST_CASE(UtilsFileReliTestSuite, testCreatFileAfterMaxFilesOpened, Function | MediumTest | Level1)
LITE_TEST_CASE(UtilsFileReliTestSuite, testCreateFileAfterMaxFilesOpened, Function | MediumTest | Level1)
{
// Open 32 files
int fd32[MAX_NUM_OF_OPENED_FILES] = {0};
......@@ -120,13 +120,13 @@ LITE_TEST_CASE(UtilsFileReliTestSuite, testDeleteFileAfterMaxFilesOpened, Functi
}
// Delete file
char* fileName1 = "testReli101-1";
UtilsFileClose(fd32[0]);
UtilsFileClose(fd32[0]);
int ret = UtilsFileDelete(fileName1);
TEST_ASSERT_EQUAL_INT(0, ret);
// Delete all files
for (int i = 1; i < MAX_NUM_OF_OPENED_FILES; i++) {
UtilsFileClose(fd32[i]);
}
}
for (int i = 0; i < MAX_NUM_OF_OPENED_FILES; i++) {
int j = i + 1;
char fileName32[LENGTH_OF_FILE_NAME_BUF] = {0};
......@@ -243,7 +243,7 @@ LITE_TEST_CASE(UtilsFileReliTestSuite, testFileOperFlow001, Function | MediumTes
{
char* fileName1 = "testReli102a";
char* fileName2 = "testReli102b";
// Creat file
// Create file
int fd1 = UtilsFileOpen(fileName1, O_RDWR_FS | O_CREAT_FS, 0);
UtilsFileWrite(fd1, g_def, strlen(g_def));
UtilsFileClose(fd1);
......@@ -281,7 +281,7 @@ LITE_TEST_CASE(UtilsFileReliTestSuite, testFileOperFlow002, Function | MediumTes
char* fileName1 = "testReli102a";
char* fileName2 = "testReli102b";
char* fileName3 = "testReli102c";
// Creat file
// Create file
int fd1 = UtilsFileOpen(fileName1, O_RDWR_FS | O_CREAT_FS, 0);
UtilsFileWrite(fd1, g_def, strlen(g_def));
UtilsFileClose(fd1);
......@@ -323,7 +323,7 @@ LITE_TEST_CASE(UtilsFileReliTestSuite, testEmptyFileOperFlow001, Function | Medi
{
char* fileName1 = "testReli103a";
char* fileName2 = "testReli103b";
// Creat an empty file
// Create an empty file
int fd1 = UtilsFileOpen(fileName1, O_RDWR_FS | O_CREAT_FS, 0);
UtilsFileClose(fd1);
// Copy file
......@@ -359,7 +359,7 @@ LITE_TEST_CASE(UtilsFileReliTestSuite, testEmptyFileOperFlow002, Function | Medi
char* fileName1 = "testReli103a";
char* fileName2 = "testReli103b";
char* fileName3 = "testReli103c";
// Creat an empty file
// Create an empty file
int fd1 = UtilsFileOpen(fileName1, O_RDWR_FS | O_CREAT_FS, 0);
UtilsFileClose(fd1);
// Copy file
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册