Skip to content

Commit

Permalink
Merge pull request #1964 from skliper/fix1963-func_no_format_ram
Browse files Browse the repository at this point in the history
Fix #1963, Use existing /ram for FS header test
  • Loading branch information
astrogeco authored Sep 21, 2021
2 parents b6928b2 + ea582ac commit f443ce3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions modules/cfe_testcase/src/fs_header_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,12 @@

#include "cfe_test.h"

#define OS_TEST_HEADER_FILENAME "/drive0/header_test.txt"
#define OS_TEST_HEADER_FILENAME "/ram/header_test.txt"
char *fsAddrPtr = NULL;

static osal_id_t setup_file(void)
{
osal_id_t id;
OS_mkfs(fsAddrPtr, "/ramdev1", "RAM", 512, 20);
OS_mount("/ramdev1", "/drive0");
UtAssert_INT32_EQ(OS_OpenCreate(&id, OS_TEST_HEADER_FILENAME, OS_FILE_FLAG_CREATE, OS_READ_WRITE), OS_SUCCESS);
return id;
}
Expand Down

0 comments on commit f443ce3

Please sign in to comment.