Author: amccarth Date: Tue Oct 13 12:54:15 2015 New Revision: 250188 URL: http://llvm.org/viewvc/llvm-project?rev=250188&view=rev Log: Fix TestTargetAPI.py test for users who use Swig 3.0.5 or greater.
DifferentialRevision: http://reviews.llvm.org/D13679 Modified: lldb/trunk/scripts/interface/SBError.i lldb/trunk/test/python_api/default-constructor/sb_error.py Modified: lldb/trunk/scripts/interface/SBError.i URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/interface/SBError.i?rev=250188&r1=250187&r2=250188&view=diff ============================================================================== --- lldb/trunk/scripts/interface/SBError.i (original) +++ lldb/trunk/scripts/interface/SBError.i Tue Oct 13 12:54:15 2015 @@ -56,6 +56,7 @@ And (from test/python_api/event/TestEven 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, ...); Modified: lldb/trunk/test/python_api/default-constructor/sb_error.py URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/python_api/default-constructor/sb_error.py?rev=250188&r1=250187&r2=250188&view=diff ============================================================================== --- lldb/trunk/test/python_api/default-constructor/sb_error.py (original) +++ lldb/trunk/test/python_api/default-constructor/sb_error.py Tue Oct 13 12:54:15 2015 @@ -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() _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits