1# REQUIRES: lua
2#
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.
5#
6# RUN: cat %s | %lldb --script-language lua 2>&1 | FileCheck %s
7script
8print(string.format("lldb.debugger is valid: %s", lldb.debugger:IsValid()))
9print(string.format("lldb.target is valid: %s", lldb.target:IsValid()))
10print(string.format("lldb.process is valid: %s", lldb.process:IsValid()))
11print(string.format("lldb.thread is valid: %s", lldb.thread:IsValid()))
12print(string.format("lldb.frame is valid: %s", 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
18