diff --git a/interfaces/test/unittest/js/mod_fs/properties/read_text_core_test.cpp b/interfaces/test/unittest/js/mod_fs/properties/read_text_core_test.cpp index 56b6e4bb352dd1cb9eda26155c25551b0d1c26ef..459ffd6fadd9993d4aa82c73216ecd0db64c53bb 100644 --- a/interfaces/test/unittest/js/mod_fs/properties/read_text_core_test.cpp +++ b/interfaces/test/unittest/js/mod_fs/properties/read_text_core_test.cpp @@ -24,14 +24,14 @@ namespace FileManagement { namespace ModuleFileIO { using namespace std; -const string content = "hello world"; +const string g_content = "hello world"; class ReadTextCoreTest : public testing::Test { public: static void SetUpTestCase(void) { int32_t fd = open(FILE_PATH, CREATE | O_RDWR, 0644); - write(fd, content.c_str(), content.length()); + write(fd, g_content.c_str(), g_content.length()); close(fd); }; static void TearDownTestCase()