187aa9c9eSJonas Devlieghere# REQUIRES: python 287aa9c9eSJonas Devlieghere# RUN: echo 'b main' > %t.in 387aa9c9eSJonas Devlieghere# RUN: echo 'run' >> %t.in 487aa9c9eSJonas Devlieghere# RUN: echo 'command script import %S/Inputs/frame.py' >> %t.in 587aa9c9eSJonas Devlieghere 6*9c739252SPavel Labath# RUN: %clang_host -g -O0 %S/Inputs/main.c -o %t.out 787aa9c9eSJonas Devlieghere# RUN: %lldb -b -s %t.in -o 'script print("script: {}".format(lldb.frame))' %t.out | FileCheck %s 887aa9c9eSJonas Devlieghere 987aa9c9eSJonas Devlieghere# Make sure that we don't have access to lldb.frame from the Python script. 1087aa9c9eSJonas Devlieghere# CHECK: frame.py: None 1187aa9c9eSJonas Devlieghere 1287aa9c9eSJonas Devlieghere# Make sure that we do have access to lldb.frame from the script command. 1387aa9c9eSJonas Devlieghere# CHECK: script: frame #0 14