mirror of
https://github.com/intel/llvm.git
synced 2026-02-08 08:57:43 +08:00
[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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user