llvm-project/lldb/test/Shell/SymbolFile/DWARF/deterministic-build.cpp
cmtice e6aefbec78
[LLDB] Fix tests that fail when using internal shell. (#156931)
These tests were failing on darwin, because the internal shell needs
environment var definitions to start with 'env'. This PR (hopefully)
fixes that problem.
2025-09-04 10:43:09 -07:00

11 lines
477 B
C++

// Test that binaries linked deterministically (N_OSO has timestamp 0) can still
// have their object files loaded by lldb. Note that the env var ZERO_AR_DATE
// requires the ld64 linker, which clang invokes by default.
// 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
// CHECK: stop reason = breakpoint
int main() { return 0; }