From aa1a12795ee11d48cf0df8c58058a3a36992e6b2 Mon Sep 17 00:00:00 2001 From: Aiden Grossman Date: Thu, 4 Sep 2025 16:41:15 -0700 Subject: [PATCH 1/2] [LLDB] Fix deterministic-build.cpp post #156931 This test was brokem by migrating to the lit internal shell due to a lack of env prefix for setting environment variables. This was fixed in prevented the breakpoint in the test from mapping to anything, causing the test to file. This patch restores the original line numbering. --- lldb/test/Shell/SymbolFile/DWARF/deterministic-build.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lldb/test/Shell/SymbolFile/DWARF/deterministic-build.cpp b/lldb/test/Shell/SymbolFile/DWARF/deterministic-build.cpp index 13fe3898e50aa..a45f794c73a43 100644 --- a/lldb/test/Shell/SymbolFile/DWARF/deterministic-build.cpp +++ b/lldb/test/Shell/SymbolFile/DWARF/deterministic-build.cpp @@ -7,4 +7,5 @@ // RUN: %lldb %t -o "breakpoint set -f %s -l 11" -o run -o exit | FileCheck %s // CHECK: stop reason = breakpoint + int main() { return 0; } From e7dced4b769ee3260095fc1f7e620a06f42dd02e Mon Sep 17 00:00:00 2001 From: Aiden Grossman Date: Thu, 4 Sep 2025 16:48:18 -0700 Subject: [PATCH 2/2] Fix formatting --- lldb/test/Shell/SymbolFile/DWARF/deterministic-build.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lldb/test/Shell/SymbolFile/DWARF/deterministic-build.cpp b/lldb/test/Shell/SymbolFile/DWARF/deterministic-build.cpp index a45f794c73a43..0c86107fc9632 100644 --- a/lldb/test/Shell/SymbolFile/DWARF/deterministic-build.cpp +++ b/lldb/test/Shell/SymbolFile/DWARF/deterministic-build.cpp @@ -4,8 +4,7 @@ // REQUIRES: system-darwin // RUN: %clang_host %s -g -c -o %t.o // RUN: env ZERO_AR_DATE=1 %clang_host %t.o -g -o %t -// RUN: %lldb %t -o "breakpoint set -f %s -l 11" -o run -o exit | FileCheck %s +// RUN: %lldb %t -o "breakpoint set -f %s -l 10" -o run -o exit | FileCheck %s // CHECK: stop reason = breakpoint - int main() { return 0; }