[Lldb-commits] [lldb] a17ad35 - [lldb/Test] Check that attribute exists before comparing its value

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Mon Jan 20 10:48:57 PST 2020


Author: Jonas Devlieghere
Date: 2020-01-20T10:48:42-08:00
New Revision: a17ad3592ff8c69c683c17fa60910ce326a451b0

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

LOG: [lldb/Test] Check that attribute exists before comparing its value

Added: 
    

Modified: 
    lldb/test/Shell/Reproducer/lit.local.cfg
    lldb/utils/lldb-repro/lldb-repro.py

Removed: 
    


################################################################################
diff  --git a/lldb/test/Shell/Reproducer/lit.local.cfg b/lldb/test/Shell/Reproducer/lit.local.cfg
index 51a744a6607c..f40d81c38099 100644
--- a/lldb/test/Shell/Reproducer/lit.local.cfg
+++ b/lldb/test/Shell/Reproducer/lit.local.cfg
@@ -6,5 +6,5 @@ if 'LLVM_DISABLE_CRASH_REPORT' in config.environment:
 if 'LLDB_CAPTURE_REPRODUCER' in config.environment:
   del config.environment['LLDB_CAPTURE_REPRODUCER']
 
-if config.skip_reproducer_test:
+if hasattr(config, 'skip_reproducer_test') and config.skip_reproducer_test:
   config.unsupported = True

diff  --git a/lldb/utils/lldb-repro/lldb-repro.py b/lldb/utils/lldb-repro/lldb-repro.py
old mode 100644
new mode 100755


        


More information about the lldb-commits mailing list