File tree Expand file tree Collapse file tree 6 files changed +12
-12
lines changed
Expand file tree Collapse file tree 6 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ extern UT_OsLogInfo_t g_logInfo;
2929**--------------------------------------------------------------------------------*/
3030
3131int32 g_skipTestCase = -1 ;
32- char * g_skipTestCaseResult = " " ;
32+ const char * g_skipTestCaseResult = " " ;
3333
34- char * g_task_names [UT_OS_TASK_LIST_LEN ];
34+ const char * g_task_names [UT_OS_TASK_LIST_LEN ];
3535char g_long_task_name [OS_MAX_API_NAME + 5 ];
3636
3737/*--------------------------------------------------------------------------------*
@@ -49,6 +49,7 @@ void UT_os_setup_install_delete_handler_test(void);
4949void UT_os_init_task_exit_test (void );
5050void UT_os_init_task_delay_test (void );
5151void UT_os_init_task_set_priority_test (void );
52+ void UT_os_init_task_register_test (void );
5253void UT_os_init_task_get_id_test (void );
5354void UT_os_init_task_get_id_by_name_test (void );
5455void UT_os_init_task_get_info_test (void );
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ char g_dirName[UT_OS_SM_TEXT_LEN];
4040char g_fileName [UT_OS_SM_TEXT_LEN ];
4141
4242char g_subdirNames [UT_OS_FILE_MAX_DIRS ][UT_OS_SM_TEXT_LEN ];
43- char * g_tgtSubdirs [UT_OS_FILE_MAX_DIRS ] = {"subdir1" , "subdir2" };
43+ const char * g_tgtSubdirs [UT_OS_FILE_MAX_DIRS ] = {"subdir1" , "subdir2" };
4444
4545char g_dirItems [UT_OS_FILE_MAX_DIRS ][UT_OS_SM_TEXT_LEN ];
4646
@@ -520,7 +520,6 @@ void UT_os_readdir_test()
520520{
521521 int32 idx = 0 ;
522522 uint32 dirh ;
523- os_dirent_t * dirEntry = NULL ;
524523 UT_OsApiInfo_t apiInfo ;
525524 const char * testDesc = NULL ;
526525
Original file line number Diff line number Diff line change @@ -2091,7 +2091,7 @@ void UT_os_outputtofile_test()
20912091{
20922092 int32 idx = 0 ;
20932093 UT_OsApiInfo_t apiInfo ;
2094- char * cmd = NULL ;
2094+ const char * cmd = NULL ;
20952095 const char * testDesc = NULL ;
20962096
20972097 UT_OS_CLEAR_API_INFO_MACRO (apiInfo , idx )
@@ -2236,7 +2236,7 @@ void UT_os_getfdinfo_test()
22362236 UT_OsApiInfo_t apiInfo ;
22372237 OS_file_prop_t fdProps ;
22382238 const char * testDesc = NULL ;
2239- char * fileName = "GetInfo_Nom.txt" ;
2239+ const char * fileName = "GetInfo_Nom.txt" ;
22402240
22412241 UT_OS_CLEAR_API_INFO_MACRO (apiInfo , idx )
22422242
Original file line number Diff line number Diff line change @@ -31,14 +31,14 @@ extern UT_OsLogInfo_t g_logInfo;
3131char * g_fsAddrPtr = NULL ;
3232
3333int32 g_skipTestCase = -1 ;
34- char * g_skipTestCaseResult = " " ;
34+ const char * g_skipTestCaseResult = " " ;
3535
3636char g_longPathName [OS_MAX_PATH_LEN + 5 ];
3737char g_longFileName [OS_MAX_PATH_LEN ];
3838char g_invalidPath [OS_MAX_PATH_LEN ];
3939
40- char * g_devName = "/ramdev3" ;
41- char * g_mntName = "/drive3" ;
40+ const char * g_devName = "/ramdev3" ;
41+ const char * g_mntName = "/drive3" ;
4242
4343/*--------------------------------------------------------------------------------*
4444** External function prototypes
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ int32 g_blkSize = UT_OS_FS_BLOCK_SIZE;
3737int32 g_blkCnt = UT_OS_FS_MAX_BLOCKS ;
3838
3939int32 g_skipTestCase = -1 ;
40- char * g_skipTestCaseResult = " " ;
40+ const char * g_skipTestCaseResult = " " ;
4141
4242char g_fsLongName [OS_MAX_PATH_LEN + 5 ];
4343char g_physDriveName [OS_MAX_PATH_LEN ];
Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ extern UT_OsLogInfo_t g_logInfo;
2929**--------------------------------------------------------------------------------*/
3030
3131int32 g_skipTestCase = -1 ;
32- char * g_skipTestCaseResult = " " ;
32+ const char * g_skipTestCaseResult = " " ;
3333
34- char * g_timerNames [UT_OS_TIMER_LIST_LEN ];
34+ const char * g_timerNames [UT_OS_TIMER_LIST_LEN ];
3535char g_longTimerName [OS_MAX_API_NAME + 5 ];
3636
3737uint32 g_cbLoopCntMax = 5 ;
You can’t perform that action at this time.
0 commit comments