xref: /llvm-project/lldb/test/Shell/ScriptInterpreter/Lua/convenience_variables.test (revision 88591aa0ca7e4d99da353d49f91ea63e43fb55e0)
145c971f7SJonas Devlieghere# This tests that the convenience variables are not nil. Given that there is no
245c971f7SJonas Devlieghere# target we only expect the debugger to be valid.
345c971f7SJonas Devlieghere#
445c971f7SJonas Devlieghere# RUN: cat %s | %lldb --script-language lua 2>&1 | FileCheck %s
545c971f7SJonas Devliegherescript
6*5b761279SPavel Labathprint("lldb.debugger is valid: ", tostring(lldb.debugger:IsValid()))
7*5b761279SPavel Labathprint("lldb.target is valid: ", tostring(lldb.target:IsValid()))
8*5b761279SPavel Labathprint("lldb.process is valid: ", tostring(lldb.process:IsValid()))
9*5b761279SPavel Labathprint("lldb.thread is valid: ", tostring(lldb.thread:IsValid()))
10*5b761279SPavel Labathprint("lldb.frame is valid: ", tostring(lldb.frame:IsValid()))
1145c971f7SJonas Devlieghere# CHECK: debugger is valid: true
1245c971f7SJonas Devlieghere# CHECK: target is valid: false
1345c971f7SJonas Devlieghere# CHECK: process is valid: false
1445c971f7SJonas Devlieghere# CHECK: thread is valid: false
1545c971f7SJonas Devlieghere# CHECK: frame is valid: false
16