summaryrefslogtreecommitdiffstats
path: root/lldb/test/Shell/ScriptInterpreter/Lua
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2019-12-23 11:05:32 +0100
committerPavel Labath <pavel@labath.sk>2019-12-23 11:07:35 +0100
commit12a3d97cf68389a025b8a75b8ea660b11401a3c8 (patch)
tree9f2273561e1a4ec8d24c6d2be7327325f30107dc /lldb/test/Shell/ScriptInterpreter/Lua
parentfecb122cca254f565050559b349c8ff309194554 (diff)
downloadbcm5719-llvm-12a3d97cf68389a025b8a75b8ea660b11401a3c8.tar.gz
bcm5719-llvm-12a3d97cf68389a025b8a75b8ea660b11401a3c8.zip
[lldb/lua] Fix bindings.test for lua-5.1
string.format("%s", true) only works since lua-5.2. Make the print statement more portable.
Diffstat (limited to 'lldb/test/Shell/ScriptInterpreter/Lua')
-rw-r--r--lldb/test/Shell/ScriptInterpreter/Lua/bindings.test2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/test/Shell/ScriptInterpreter/Lua/bindings.test b/lldb/test/Shell/ScriptInterpreter/Lua/bindings.test
index 00e00d43479..aeafbecaa83 100644
--- a/lldb/test/Shell/ScriptInterpreter/Lua/bindings.test
+++ b/lldb/test/Shell/ScriptInterpreter/Lua/bindings.test
@@ -2,5 +2,5 @@
# RUN: cat %s | %lldb --script-language lua 2>&1 | FileCheck %s
script
debugger = lldb.SBDebugger.Create()
-print(string.format("debugger is valid: %s", debugger:IsValid()))
+print("debugger is valid:", tostring(debugger:IsValid()))
# CHECK: debugger is valid: true
OpenPOWER on IntegriCloud