[Lldb-commits] [PATCH] D62096: [lldb] [lit] Driver/TestConvenienceVariables.test requires Python

Michał Górny via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Sat May 18 00:27:01 PDT 2019


mgorny created this revision.
mgorny added reviewers: labath, JDevlieghere, aprantl.

https://reviews.llvm.org/D62096

Files:
  lldb/lit/Driver/TestConvenienceVariables.test
  lldb/lit/lit.cfg.py


Index: lldb/lit/lit.cfg.py
===================================================================
--- lldb/lit/lit.cfg.py
+++ lldb/lit/lit.cfg.py
@@ -96,3 +96,6 @@
                 config.available_features.add('native-cpu-%s' % x)
         else:
             lit_config.warning("lit-cpuid failed: %s" % err)
+
+if not config.lldb_disable_python:
+    config.available_features.add('python')
Index: lldb/lit/Driver/TestConvenienceVariables.test
===================================================================
--- lldb/lit/Driver/TestConvenienceVariables.test
+++ lldb/lit/Driver/TestConvenienceVariables.test
@@ -1,3 +1,4 @@
+REQUIRES: python
 RUN: %build %p/Inputs/hello.cpp -o %t
 RUN: %lldb %t -s %p/Inputs/convenience.in -o quit | FileCheck %s
 
@@ -19,4 +20,4 @@
 CHECK: script lldb.frame.GetLineEntry().GetFileSpec().GetFilename()
 CHECK: hello.c
 CHECK: script lldb.frame.GetFunctionName()
-CHECK: main
\ No newline at end of file
+CHECK: main


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62096.200136.patch
Type: text/x-patch
Size: 952 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190518/e779a938/attachment-0001.bin>


More information about the lldb-commits mailing list