[Lldb-commits] [lldb] 7dbb427 - [lldb] Fix replaying TestMemoryRead.py from reproducer

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Mon Apr 12 21:10:16 PDT 2021


Author: Jonas Devlieghere
Date: 2021-04-12T21:10:09-07:00
New Revision: 7dbb4274ef92c32b02c427d4844f3ddfdd05ef58

URL: https://github.com/llvm/llvm-project/commit/7dbb4274ef92c32b02c427d4844f3ddfdd05ef58
DIFF: https://github.com/llvm/llvm-project/commit/7dbb4274ef92c32b02c427d4844f3ddfdd05ef58.diff

LOG: [lldb] Fix replaying TestMemoryRead.py from reproducer

Remap the external file to the one embedded in the reproducer.

Added: 
    

Modified: 
    lldb/test/API/functionalities/memory/read/TestMemoryRead.py

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/functionalities/memory/read/TestMemoryRead.py b/lldb/test/API/functionalities/memory/read/TestMemoryRead.py
index ceea4ab2f067a..3efda021584b5 100644
--- a/lldb/test/API/functionalities/memory/read/TestMemoryRead.py
+++ b/lldb/test/API/functionalities/memory/read/TestMemoryRead.py
@@ -150,6 +150,8 @@ def test_memory_read_file(self):
         golden_output = res.GetOutput()
 
         memory_read_file = self.getBuildArtifact("memory-read-output")
+        if configuration.is_reproducer_replay():
+            memory_read_file = self.getReproducerRemappedPath(memory_read_file)
 
         def check_file_content(expected):
             with open(memory_read_file) as f:


        


More information about the lldb-commits mailing list