[Lldb-commits] [lldb] 4c830b5 - Revert "[lldb] [test] Use Windows-friendly modes in vFile O_CREAT tests"
Michał Górny via lldb-commits
lldb-commits at lists.llvm.org
Mon Aug 9 10:38:13 PDT 2021
Author: Michał Górny
Date: 2021-08-09T19:38:05+02:00
New Revision: 4c830b5f35f0f4058d84732fafcc38c12a7969b3
URL: https://github.com/llvm/llvm-project/commit/4c830b5f35f0f4058d84732fafcc38c12a7969b3
DIFF: https://github.com/llvm/llvm-project/commit/4c830b5f35f0f4058d84732fafcc38c12a7969b3.diff
LOG: Revert "[lldb] [test] Use Windows-friendly modes in vFile O_CREAT tests"
This reverts commit 116b112bbfe043aba16d732c2eec783f0b817bb4.
Added:
Modified:
lldb/test/API/tools/lldb-server/TestGdbRemotePlatformFile.py
Removed:
################################################################################
diff --git a/lldb/test/API/tools/lldb-server/TestGdbRemotePlatformFile.py b/lldb/test/API/tools/lldb-server/TestGdbRemotePlatformFile.py
index 432b56e49964..4e3ba2519da5 100644
--- a/lldb/test/API/tools/lldb-server/TestGdbRemotePlatformFile.py
+++ b/lldb/test/API/tools/lldb-server/TestGdbRemotePlatformFile.py
@@ -52,10 +52,12 @@ def test_platform_file_wronly_trunc(self):
def test_platform_file_rdwr_trunc(self):
self.vFile_test(read=True, write=True, trunc=True)
+ @expectedFailureAll(oslist=["windows"])
@add_test_categories(["llgs"])
def test_platform_file_wronly_creat(self):
self.vFile_test(write=True, creat=True)
+ @expectedFailureAll(oslist=["windows"])
@add_test_categories(["llgs"])
def test_platform_file_wronly_creat_excl(self):
self.vFile_test(write=True, creat=True, excl=True)
@@ -120,7 +122,7 @@ def vFile_test(self, read=False, write=False, append=False, trunc=False,
if excl:
mode |= 0x800
- old_umask = os.umask(0)
+ old_umask = os.umask(0o22)
try:
server = self.connect_to_debug_monitor()
finally:
@@ -146,7 +148,7 @@ def vFile_test(self, read=False, write=False, append=False, trunc=False,
# open the file for reading
self.do_handshake()
self.test_sequence.add_log_lines(
- ["read packet: $vFile:open:%s,%x,1b6#00" % (
+ ["read packet: $vFile:open:%s,%x,1a0#00" % (
binascii.b2a_hex(temp_path.encode()).decode(),
mode),
{"direction": "send",
@@ -220,7 +222,7 @@ def vFile_test(self, read=False, write=False, append=False, trunc=False,
if creat:
temp_file = open(temp_path, "rb")
self.assertEqual(os.fstat(temp_file.fileno()).st_mode & 0o7777,
- 0o666)
+ 0o640)
temp_file.seek(0)
data = test_data.encode()
if trunc or creat:
More information about the lldb-commits
mailing list