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