From 7b5e17d04ba0543cd9f64a685a8b50f350cac0f0 Mon Sep 17 00:00:00 2001 From: Giovanna Lazzari Miotto <giovanna.lazzari.miotto@cern.ch> Date: Thu, 29 Aug 2024 16:27:36 +0200 Subject: [PATCH] posix c calls tests --- test/testing_scripts/creat_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testing_scripts/creat_test.cpp b/test/testing_scripts/creat_test.cpp index dc74d5ac..6a36b5b6 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; -- GitLab