summaryrefslogtreecommitdiffstats
path: root/lldb
diff options
context:
space:
mode:
Diffstat (limited to 'lldb')
-rw-r--r--lldb/scripts/interface/SBError.i2
-rw-r--r--lldb/test/python_api/default-constructor/sb_error.py3
2 files changed, 5 insertions, 0 deletions
diff --git a/lldb/scripts/interface/SBError.i b/lldb/scripts/interface/SBError.i
index d8dece2b22d..bebf2d7d72a 100644
--- a/lldb/scripts/interface/SBError.i
+++ b/lldb/scripts/interface/SBError.i
@@ -56,6 +56,7 @@ And (from test/python_api/event/TestEvent.py),
checks that after calling the target.Launch() method there's no error
condition and we get back a void process object.
") SBError;
+
class SBError {
public:
SBError ();
@@ -94,6 +95,7 @@ public:
void
SetErrorString (const char *err_str);
+ %varargs(3, char *str = NULL) SetErrorStringWithFormat;
int
SetErrorStringWithFormat (const char *format, ...);
diff --git a/lldb/test/python_api/default-constructor/sb_error.py b/lldb/test/python_api/default-constructor/sb_error.py
index 617fab3e61e..7e069323bf3 100644
--- a/lldb/test/python_api/default-constructor/sb_error.py
+++ b/lldb/test/python_api/default-constructor/sb_error.py
@@ -18,5 +18,8 @@ def fuzz_obj(obj):
obj.SetErrorString(None)
obj.SetErrorStringWithFormat("%s!", "error")
obj.SetErrorStringWithFormat(None)
+ obj.SetErrorStringWithFormat("error")
+ obj.SetErrorStringWithFormat("%s %s", "warning", "danger")
+ obj.SetErrorStringWithFormat("%s %s %s", "danger", "will", "robinson")
obj.GetDescription(lldb.SBStream())
obj.Clear()
OpenPOWER on IntegriCloud