forked from OSchip/llvm-project
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:
parent
1732340bfa
commit
1d34f74470
|
@ -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, ...);
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue