1 # UNSUPPORTED: lldb-repro
3 # This tests that the convenience variables are not nil. Given that there is no
4 # target we only expect the debugger to be valid.
6 # RUN: cat %s | %lldb --script-language lua 2>&1 | FileCheck %s
8 print("lldb.debugger is valid: ", tostring(lldb.debugger:IsValid()))
9 print("lldb.target is valid: ", tostring(lldb.target:IsValid()))
10 print("lldb.process is valid: ", tostring(lldb.process:IsValid()))
11 print("lldb.thread is valid: ", tostring(lldb.thread:IsValid()))
12 print("lldb.frame is valid: ", tostring(lldb.frame:IsValid()))
13 # CHECK: debugger is valid: true
14 # CHECK: target is valid: false
15 # CHECK: process is valid: false
16 # CHECK: thread is valid: false
17 # CHECK: frame is valid: false