16 lines · plain
1# REQUIRES: python2 3# RUN: mkdir -p %t4# RUN: cd %t5# RUN: echo "int main() { return 0; }" | %clang_host -x c - -o a.out6# RUN: cat %s | %lldb 2>&1 | FileCheck %s7script -l lua --8target = lldb.debugger:CreateTarget("a.out")9print("target is valid:", tostring(target:IsValid()))10lldb.debugger:SetSelectedTarget(target)11quit12# CHECK: target is valid: true13script -l python --14print("selected target: {}".format(lldb.debugger.GetSelectedTarget()))15# CHECK: selected target: a.out16