Fix TestTargetAPI.py test for users who use Swig 3.0.5 or greater.

DifferentialRevision: http://reviews.llvm.org/D13679
llvm-svn: 250188
This commit is contained in:
Adrian McCarthy 2015-10-13 17:54:15 +00:00
parent 1732340bfa
commit 1d34f74470
2 changed files with 5 additions and 0 deletions

View File

@ -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, ...);

View File

@ -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()