Author: Pavel Labath
Date: 2020-01-10T13:02:01+01:00
New Revision: 5b7612792aeb5b161fdd69997db2a64b08f075b6

URL: 
https://github.com/llvm/llvm-project/commit/5b7612792aeb5b161fdd69997db2a64b08f075b6
DIFF: 
https://github.com/llvm/llvm-project/commit/5b7612792aeb5b161fdd69997db2a64b08f075b6.diff

LOG: [lldb/lua] Make convenience_variables.test compatible with lua-5.1

Added: 
    

Modified: 
    lldb/test/Shell/ScriptInterpreter/Lua/convenience_variables.test

Removed: 
    


################################################################################
diff  --git a/lldb/test/Shell/ScriptInterpreter/Lua/convenience_variables.test 
b/lldb/test/Shell/ScriptInterpreter/Lua/convenience_variables.test
index 022f2e38db49..e962fc7f5ec7 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


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to