Author: Pavel Labath Date: 2019-12-23T11:07:35+01:00 New Revision: 12a3d97cf68389a025b8a75b8ea660b11401a3c8
URL: https://github.com/llvm/llvm-project/commit/12a3d97cf68389a025b8a75b8ea660b11401a3c8 DIFF: https://github.com/llvm/llvm-project/commit/12a3d97cf68389a025b8a75b8ea660b11401a3c8.diff LOG: [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. Added: Modified: lldb/test/Shell/ScriptInterpreter/Lua/bindings.test Removed: ################################################################################ diff --git a/lldb/test/Shell/ScriptInterpreter/Lua/bindings.test b/lldb/test/Shell/ScriptInterpreter/Lua/bindings.test index 00e00d434793..aeafbecaa83f 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 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits