[Lldb-commits] [PATCH] D42908: Fix Bug 36237 - TestTargetSymbolsSepDebugSymlink fails when run remotely

Jan Kratochvil via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Feb 5 07:35:10 PST 2018


jankratochvil created this revision.
jankratochvil added a reviewer: labath.

(In reply to labath from Bug 36237 comment #0)

> The root problem is in Platform::Install. When given a symlink, it will try to create the same symlink on the target.  However, Platform::CreateSymlink function is not implemented, but even if it was, the target is unlikely to contain anything at the place where the symlink points to. And even if it contain something, it would most likely be a different object than the debugger will obtain when it resolves the symlink locally.

`lldb-server platform` did create a symlink for me:

  /tmp/lldbtest/1/linux/sepdebugsymlink:
  lrwxrwxrwx 1 jkratoch jkratoch   23 Feb  5 15:59 stripped.symlink -> ../dirreal/stripped.out

But I haven't found how to transfer the binaries there, I tried a bit some `AddModule`+`SetRemoteInstallFileSpec` but it did not work and I did not try harder.

> I think that a more reasonable behavior here would be to copy the file contents instead.

The symlink is essential for this testcase otherwise it does not test the bugfix.  OK to just disable it for remote testing?


https://reviews.llvm.org/D42908

Files:
  packages/Python/lldbsuite/test/linux/sepdebugsymlink/TestTargetSymbolsSepDebugSymlink.py


Index: packages/Python/lldbsuite/test/linux/sepdebugsymlink/TestTargetSymbolsSepDebugSymlink.py
===================================================================
--- packages/Python/lldbsuite/test/linux/sepdebugsymlink/TestTargetSymbolsSepDebugSymlink.py
+++ packages/Python/lldbsuite/test/linux/sepdebugsymlink/TestTargetSymbolsSepDebugSymlink.py
@@ -15,6 +15,7 @@
     @no_debug_info_test  # Prevent the genaration of the dwarf version of this test
     @skipUnlessPlatform(['linux'])
     @skipIf(hostoslist=["windows"])
+    @skipIfRemote
     def test_target_symbols_sepdebug_symlink_case(self):
         self.build(clean=True)
         exe = self.getBuildArtifact("dirsymlink/stripped.symlink")


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42908.132828.patch
Type: text/x-patch
Size: 703 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20180205/94443cb1/attachment.bin>


More information about the lldb-commits mailing list