1*6ae61f76SJonas Devlieghere# UNSUPPORTED: lldb-repro
245c971f7SJonas Devlieghere#
345c971f7SJonas Devlieghere# This tests that the convenience variables are not nil. Given that there is no
445c971f7SJonas Devlieghere# target we only expect the debugger to be valid.
545c971f7SJonas Devlieghere#
645c971f7SJonas Devlieghere# RUN: cat %s | %lldb --script-language lua 2>&1 | FileCheck %s
745c971f7SJonas Devliegherescript
85b761279SPavel Labathprint("lldb.debugger is valid: ", tostring(lldb.debugger:IsValid()))
95b761279SPavel Labathprint("lldb.target is valid: ", tostring(lldb.target:IsValid()))
105b761279SPavel Labathprint("lldb.process is valid: ", tostring(lldb.process:IsValid()))
115b761279SPavel Labathprint("lldb.thread is valid: ", tostring(lldb.thread:IsValid()))
125b761279SPavel Labathprint("lldb.frame is valid: ", tostring(lldb.frame:IsValid()))
1345c971f7SJonas Devlieghere# CHECK: debugger is valid: true
1445c971f7SJonas Devlieghere# CHECK: target is valid: false
1545c971f7SJonas Devlieghere# CHECK: process is valid: false
1645c971f7SJonas Devlieghere# CHECK: thread is valid: false
1745c971f7SJonas Devlieghere# CHECK: frame is valid: false
18