Skip to content

Commit

Permalink
HOTFIX: Remove dprecated CFE_FS_IsGzFile test
Browse files Browse the repository at this point in the history
  • Loading branch information
skliper committed May 11, 2020
1 parent c8d8bf8 commit 7b56b85
Showing 1 changed file with 0 additions and 53 deletions.
53 changes: 0 additions & 53 deletions fsw/cfe-core/unit-test/fs_UT.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ void UtTest_Setup(void)
UT_ADD_TEST(Test_CFE_FS_SetTimestamp);
UT_ADD_TEST(Test_CFE_FS_ByteSwapCFEHeader);
UT_ADD_TEST(Test_CFE_FS_ByteSwapUint32);
UT_ADD_TEST(Test_CFE_FS_IsGzFile);
UT_ADD_TEST(Test_CFE_FS_ExtractFileNameFromPath);
UT_ADD_TEST(Test_CFE_FS_Private);
}
Expand Down Expand Up @@ -242,58 +241,6 @@ void Test_CFE_FS_ByteSwapUint32(void)
"Byte swap - successful");
}

/*
** Test FS API is .gz file function
*/
void Test_CFE_FS_IsGzFile(void)
{
#ifdef UT_VERBOSE
UT_Text("Begin Test Is .gz File\n");
#endif

/* Test if file name ends in .gz with the file name too short */
UT_InitData();
UT_Report(__FILE__, __LINE__,
CFE_FS_IsGzFile("a") == false,
"CFE_FS_IsGzFile",
"File name too short");

/* Test if file name ',gz' extension is missing */
UT_InitData();
UT_Report(__FILE__, __LINE__,
CFE_FS_IsGzFile("Normal_gz") == false,
"CFE_FS_IsGzFile",
"File name missing .gz extension 1");

/* Test if file name ends in .gz with no file name */
UT_InitData();
UT_Report(__FILE__, __LINE__,
CFE_FS_IsGzFile(NULL) == false,
"CFE_FS_IsGzFile",
"Null file name");

/* Test a valid file name ending in .gz */
UT_InitData();
UT_Report(__FILE__, __LINE__,
CFE_FS_IsGzFile("tar.gz") == true,
"CFE_FS_IsGzFile",
".gz file name check - successful");

/* Test if file name ',gz' extension is missing */
UT_InitData();
UT_Report(__FILE__, __LINE__,
CFE_FS_IsGzFile("Normal._z") == false,
"CFE_FS_IsGzFile",
"File name missing .gz extension 2");

/* Test if file name ',gz' extension is missing */
UT_InitData();
UT_Report(__FILE__, __LINE__,
CFE_FS_IsGzFile("Normal.g_") == false,
"CFE_FS_IsGzFile",
"File name missing .gz extension 3");
}

/*
** Test FS API write extract file name from path function
*/
Expand Down

0 comments on commit 7b56b85

Please sign in to comment.