Skip to content

Commit f11d049

Browse files
authored
Merge pull request #1113 from nasa/integration-candidate
osal Integration candidate: 2021-07-20
2 parents cb95655 + 1e7fbf4 commit f11d049

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ The autogenerated OSAL user's guide can be viewed at <https://github.com/nasa/cF
1111

1212
## Version History
1313

14+
### Development Build: v5.1.0-rc1+dev573
15+
16+
- Add independent OS_rename functional test parameter checks
17+
- See <https://github.com/nasa/osal/issues/1113> and <https://github.com/nasa/cfs/pull/311>
1418

1519
### Development Build: v5.1.0-rc1+dev569
1620

src/os/inc/osapi-version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
/*
3737
* Development Build Macro Definitions
3838
*/
39-
#define OS_BUILD_NUMBER 569
39+
#define OS_BUILD_NUMBER 573
4040
#define OS_BUILD_BASELINE "v5.1.0-rc1"
4141

4242
/*

src/unit-tests/osfile-test/ut_osfile_fileio_test.c

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,23 +1093,26 @@ void UT_os_renamefile_test()
10931093
/*-----------------------------------------------------*/
10941094
/* #2 Invalid-path-arg */
10951095

1096-
UT_RETVAL(OS_rename(g_invalidPath, g_invalidPath), OS_FS_ERR_PATH_INVALID);
1096+
UT_RETVAL(OS_rename(g_invalidPath, g_fNames[1]), OS_FS_ERR_PATH_INVALID);
1097+
UT_RETVAL(OS_rename(g_fNames[0], g_invalidPath), OS_FS_ERR_PATH_INVALID);
10971098

10981099
/*-----------------------------------------------------*/
10991100
/* #3 Path-too-long-arg */
11001101

1101-
UT_RETVAL(OS_rename(g_longPathName, g_longPathName), OS_FS_ERR_PATH_TOO_LONG);
1102+
UT_RETVAL(OS_rename(g_longPathName, g_fNames[1]), OS_FS_ERR_PATH_TOO_LONG);
1103+
UT_RETVAL(OS_rename(g_fNames[0], g_longPathName), OS_FS_ERR_PATH_TOO_LONG);
11021104

11031105
/*-----------------------------------------------------*/
11041106
/* #4 Name-too-long-arg */
11051107

1106-
UT_RETVAL(OS_rename(g_longFileName, g_longFileName), OS_FS_ERR_NAME_TOO_LONG);
1108+
UT_RETVAL(OS_rename(g_longFileName, g_fNames[1]), OS_FS_ERR_NAME_TOO_LONG);
1109+
UT_RETVAL(OS_rename(g_fNames[0], g_longFileName), OS_FS_ERR_NAME_TOO_LONG);
11071110

11081111
/*-----------------------------------------------------*/
11091112
/* #6 Nominal */
11101113

11111114
memset(g_fNames[0], '\0', sizeof(g_fNames[0]));
1112-
memset(g_fNames[0], '\0', sizeof(g_fNames[1]));
1115+
memset(g_fNames[1], '\0', sizeof(g_fNames[1]));
11131116
UT_os_sprintf(g_fNames[0], "%s/Rename_Nom_Old.txt", g_mntName);
11141117
UT_os_sprintf(g_fNames[1], "%s/Rename_Nom_New.txt", g_mntName);
11151118

0 commit comments

Comments
 (0)