From 1b753240d50a930c12c42e2f230804db3dccde96 Mon Sep 17 00:00:00 2001 From: Mitch Phillips <31459023+hctim@users.noreply.github.com> Date: Mon, 12 Dec 2022 14:00:19 -0800 Subject: [PATCH] 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 --- lldb/test/Shell/Breakpoint/breakpoint-command.test | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lldb/test/Shell/Breakpoint/breakpoint-command.test b/lldb/test/Shell/Breakpoint/breakpoint-command.test index 1236c55..2bca6a9 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 -- 2.7.4