From 5b7612792aeb5b161fdd69997db2a64b08f075b6 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Fri, 10 Jan 2020 13:01:34 +0100 Subject: [PATCH] [lldb/lua] Make convenience_variables.test compatible with lua-5.1 --- .../Shell/ScriptInterpreter/Lua/convenience_variables.test | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lldb/test/Shell/ScriptInterpreter/Lua/convenience_variables.test b/lldb/test/Shell/ScriptInterpreter/Lua/convenience_variables.test index 022f2e3..e962fc7 100644 --- a/lldb/test/Shell/ScriptInterpreter/Lua/convenience_variables.test +++ b/lldb/test/Shell/ScriptInterpreter/Lua/convenience_variables.test @@ -5,11 +5,11 @@ # # RUN: cat %s | %lldb --script-language lua 2>&1 | FileCheck %s script -print(string.format("lldb.debugger is valid: %s", lldb.debugger:IsValid())) -print(string.format("lldb.target is valid: %s", lldb.target:IsValid())) -print(string.format("lldb.process is valid: %s", lldb.process:IsValid())) -print(string.format("lldb.thread is valid: %s", lldb.thread:IsValid())) -print(string.format("lldb.frame is valid: %s", lldb.frame:IsValid())) +print("lldb.debugger is valid: ", tostring(lldb.debugger:IsValid())) +print("lldb.target is valid: ", tostring(lldb.target:IsValid())) +print("lldb.process is valid: ", tostring(lldb.process:IsValid())) +print("lldb.thread is valid: ", tostring(lldb.thread:IsValid())) +print("lldb.frame is valid: ", tostring(lldb.frame:IsValid())) # CHECK: debugger is valid: true # CHECK: target is valid: false # CHECK: process is valid: false -- 2.7.4