diff --git a/test/testing_scripts/creat_test.cpp b/test/testing_scripts/creat_test.cpp index dc74d5ac3ca6a413f19972236957d507114db836..6a36b5b68ac2929f7a2ef463a192879d771ea437 100644 --- a/test/testing_scripts/creat_test.cpp +++ b/test/testing_scripts/creat_test.cpp @@ -55,7 +55,7 @@ int main(int argc, char* argv[]) { // fopen() std::string fopen_filepath = filepath + "_fopen"; std::cout << "Attempting to call fopen() on FAMFS for filename=" << fopen_filepath << std::endl; - FILE *stream_file = fopen(fopen_filepath.c_str(), "rwa"); + FILE *stream_file = fopen(fopen_filepath.c_str(), "rwa+"); if (stream_file == NULL) { std::cout << "Failed fopen() with errno=" << std::to_string(errno) << std::endl;