This is an archive of the discontinued LLVM Phabricator instance.

Fix break introduced in 14735ca
ClosedPublic

Authored by rgiese on Aug 9 2021, 7:53 AM.

Details

Summary

The File::OpenOptions were renamed; this fixes up a callsite that breaks for macOS builds. (See https://github.com/llvm/llvm-project/commit/14735cab655441ba45c4b88ad82f11267e5fe916)

Diff Detail

Event Timeline

rgiese requested review of this revision.Aug 9 2021, 7:53 AM
rgiese created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptAug 9 2021, 7:53 AM
rgiese edited the summary of this revision. (Show Details)Aug 9 2021, 7:53 AM
rgiese added a reviewer: mgorny.
teemperor accepted this revision.Aug 9 2021, 7:57 AM
teemperor added a subscriber: teemperor.

LGTM, thanks. I assume you don't have commit access so I'll land this for you in a minute :)

This revision is now accepted and ready to land.Aug 9 2021, 7:57 AM
mgorny added a comment.Aug 9 2021, 7:58 AM

I'm sorry about missing this.

lldb/source/Plugins/Platform/MacOSX/objcxx/PlatformiOSSimulatorCoreSimulatorSupport.mm
427–433
rgiese added a comment.Aug 9 2021, 8:01 AM

@teemperor please hold while I figure out how to update the patch with @mgorny 's cleaner suggestion. :)

teemperor requested changes to this revision.Aug 9 2021, 8:02 AM

My bad, I missed that the patch isn't just renaming but actually adding a new option. Let me run the tests with the proposed change (feel free to update the review in the meantime)

This revision now requires changes to proceed.Aug 9 2021, 8:02 AM
rgiese updated this revision to Diff 365186.Aug 9 2021, 8:05 AM

Incorporating feedback.

rgiese marked an inline comment as done.Aug 9 2021, 8:06 AM
rgiese updated this revision to Diff 365190.Aug 9 2021, 8:15 AM

Trying this patch-of-a-patch thing again.

teemperor accepted this revision.Aug 9 2021, 8:37 AM

I'm landing this to unbreak Green Dragon.

@mgorny Just a heads up, I think this also broke one test with debugserver:

======================================================================
FAIL: test_platform_file_wronly_trunc_debugserver (TestGdbRemotePlatformFile.TestGdbRemotePlatformFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/teemperor/1llvm/llvm-project/lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py", line 52, in test_method
    return attrvalue(self)
  File "/Users/teemperor/1llvm/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 119, in wrapper
    func(*args, **kwargs)
  File "/Users/teemperor/1llvm/llvm-project/lldb/test/API/tools/lldb-server/TestGdbRemotePlatformFile.py", line 42, in test_platform_file_wronly_trunc
    self.vFile_test(write=True, trunc=True)
  File "/Users/teemperor/1llvm/llvm-project/lldb/test/API/tools/lldb-server/TestGdbRemotePlatformFile.py", line 146, in vFile_test
    context = self.expect_gdbremote_sequence()
  File "/Users/teemperor/1llvm/llvm-project/lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py", line 621, in expect_gdbremote_sequence
    return expect_lldb_gdbserver_replay(
  File "/Users/teemperor/1llvm/llvm-project/lldb/packages/Python/lldbsuite/test/tools/lldb-server/lldbgdbserverutils.py", line 198, in expect_lldb_gdbserver_replay
    context = sequence_entry.assert_match(
  File "/Users/teemperor/1llvm/llvm-project/lldb/packages/Python/lldbsuite/test/tools/lldb-server/lldbgdbserverutils.py", line 479, in assert_match
    return self._assert_regex_match(asserter, actual_packet, context)
  File "/Users/teemperor/1llvm/llvm-project/lldb/packages/Python/lldbsuite/test/tools/lldb-server/lldbgdbserverutils.py", line 446, in _assert_regex_match
    asserter.fail(
AssertionError: regex '^\$F([0-9a-fA-F]+)#[0-9a-fA-F]{2}$' failed to match against content '$#00'
Config=x86_64-/Users/teemperor/1llvm/rel/bin/clang
--------------------------------------------------------

( TestGdbRemotePlatformFile's different subtests fail with same/similar errors).

This revision is now accepted and ready to land.Aug 9 2021, 8:37 AM
This revision was landed with ongoing or failed builds.Aug 9 2021, 8:38 AM
This revision was automatically updated to reflect the committed changes.