Files
llvm-project/lldb/test/Shell/Breakpoint/jit-loader_jitlink_elf.test
Stefan Gränitz 8fe1dddce6 [lldb] Restrict JITLoaderGDB test to native Linux environments (#172292)
This test used to work on non-Linux platforms that could run simple ELF
objects in a JIT session. However, there is a risk that this will become
too unstable for CI, so let's limit it to what we actually need.
2025-12-18 13:38:49 +01:00

17 lines
648 B
Plaintext

# REQUIRES: target-x86_64, system-linux, native
# JITLink is the Orc-specific JIT linker implementation.
#
# RUN: %clangxx_host -g -S -emit-llvm -o %t.ll %p/Inputs/jitbp.cpp
# RUN: %lldb -b -o 'settings set plugin.jit-loader.gdb.enable on' -o 'b jitbp' \
# RUN: -o 'run --jit-linker=jitlink %t.ll' lli | FileCheck %s
# CHECK: Breakpoint 1: no locations (pending).
# CHECK: (lldb) run {{.*}}
# CHECK: Process {{.*}} launched: {{.*}}
# CHECK: Process {{.*}} stopped
# CHECK: JIT(0x{{.*}})`jitbp() at jitbp.cpp:1:15
# CHECK: -> 1 int jitbp() { return 0; }
# CHECK: ^
# CHECK: 2 int main() { return jitbp(); }