[Lldb-commits] [lldb] 1b75324 - Fix breakpoint-command.test when no script interpreter is compiled in.
Mitch Phillips via lldb-commits
lldb-commits at lists.llvm.org
Mon Dec 12 14:13:12 PST 2022
Author: Mitch Phillips
Date: 2022-12-12T14:12:52-08:00
New Revision: 1b753240d50a930c12c42e2f230804db3dccde96
URL: https://github.com/llvm/llvm-project/commit/1b753240d50a930c12c42e2f230804db3dccde96
DIFF: https://github.com/llvm/llvm-project/commit/1b753240d50a930c12c42e2f230804db3dccde96.diff
LOG: Fix breakpoint-command.test when no script interpreter is compiled in.
My local build is with -DLLVM_ENABLE_PROJECTS=lldb, but I don't compile
with -DLLDB_ENABLE_PYTHON=True or -DLLDB_ENABLE_LUA=True. This results
in there being no script interpreter.
The test lldb/test/Shell/Breakpoint/breakpoint-command.test has an
implicit dependency on a script interpreter being available.
This patch makes that dependency clear. If you have a script
interpreter, the test gets run, otherwise it gets skipped. This means
that folks (like me) who naively use -DLLVM_ENABLE_PROJECTS=lldb can
continue to run check-all without breakages.
Reviewed By: JDevlieghere
Differential Revision: https://reviews.llvm.org/D139463
Added:
Modified:
lldb/test/Shell/Breakpoint/breakpoint-command.test
Removed:
################################################################################
diff --git a/lldb/test/Shell/Breakpoint/breakpoint-command.test b/lldb/test/Shell/Breakpoint/breakpoint-command.test
index 1236c557a0232..2bca6a97e691c 100644
--- a/lldb/test/Shell/Breakpoint/breakpoint-command.test
+++ b/lldb/test/Shell/Breakpoint/breakpoint-command.test
@@ -1,3 +1,5 @@
+# REQUIRES: lua || python
+
# RUN: %build %p/Inputs/dummy-target.c -o %t.out
# RUN: %lldb %t.out -o 'b main' -o 'break command add 1 -o "script print(95000 + 126)"' -o 'r' | FileCheck %s
More information about the lldb-commits
mailing list