From eb226dca2d5451650c2bac2735bb49c690a824bf Mon Sep 17 00:00:00 2001 From: zhangkaixiang Date: Thu, 22 Sep 2022 09:19:21 +0000 Subject: [PATCH] fix open file bug in remote file share test Signed-off-by: zhangkaixiang --- test/unittest/remote_file_share/remote_file_share_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unittest/remote_file_share/remote_file_share_test.cpp b/test/unittest/remote_file_share/remote_file_share_test.cpp index 3bc9a3869..ef9a87cfd 100644 --- a/test/unittest/remote_file_share/remote_file_share_test.cpp +++ b/test/unittest/remote_file_share/remote_file_share_test.cpp @@ -126,7 +126,7 @@ namespace { { GTEST_LOG_(INFO) << "RemoteFileShareTest-begin Remote_file_share_CreateSharePath_0004"; const string fileStr = "/mnt/hmdfs/100/account/merge_view/services/remote_file_share_test.txt"; - int fd = open(fileStr.c_str(), O_CREAT | O_RDWR); + int fd = open(fileStr.c_str(), O_RDWR); ASSERT_TRUE(fd != -1) << "RemoteFileShareTest Create File Failed!"; const int userId = 100; const string deviceId = "0"; -- Gitee