From 80a58a362e81b3cf9e52bf953e88ce4eddddfe58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=A8=E9=91=AB?= Date: Thu, 10 Jul 2025 19:03:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=84=E8=8C=83=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 周鑫 --- .../unittest/js/mod_fs/properties/read_text_core_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 56b6e4bb3..459ffd6fa 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() -- Gitee