LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 23488 - TestDefaultConstructorForAPIObjects.py fails on some Macs
Summary: TestDefaultConstructorForAPIObjects.py fails on some Macs
Status: NEW
Alias: None
Product: lldb
Classification: Unclassified
Component: All Bugs (show other bugs)
Version: unspecified
Hardware: PC MacOS X
: P normal
Assignee: LLDB commit list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-12 00:47 PDT by Vince Harron
Modified: 2015-05-12 09:20 PDT (History)
0 users

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vince Harron 2015-05-12 00:47:43 PDT
======================================================================
ERROR: test_SBError (TestDefaultConstructorForAPIObjects.APIDefaultConstructorTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/vharron/ll/tot/lldb/test/lldbtest.py", line 432, in wrapper
    return func(self, *args, **kwargs)
  File "/Users/vharron/ll/tot/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py", line 120, in test_SBError
    sb_error.fuzz_obj(obj)
  File "/Users/vharron/ll/tot/lldb/test/python_api/default-constructor/sb_error.py", line 19, in fuzz_obj
    obj.SetErrorStringWithFormat("%s!", "error")
TypeError: SetErrorStringWithFormat() takes exactly 2 arguments (3 given)
Config=x86_64-clang

FAILING MAC:

vharron-macbookpro:test vharron$ egrep SetErrorStringWithFormat ../scripts/interface/SBError.i 
    SetErrorStringWithFormat (const char *format, ...);

vharron-macbookpro:test vharron$ egrep -A2 SetErrorStringWithFormat ../DerivedData/lldb/Build/Products/Debug/lldb.py 
    def SetErrorStringWithFormat(self, format):
        """SetErrorStringWithFormat(SBError self, str const * format) -> int"""
        return _lldb.SBError_SetErrorStringWithFormat(self, format)

swig 3.0.5 from homebrew

PASSING MAC:
vharron-macpro3:test vharron$ egrep SetErrorStringWithFormat ../scripts/interface/SBError.i 
    SetErrorStringWithFormat (const char *format, ...);

vharron-macpro3:test vharron$ egrep -A2 SetErrorStringWithFormat ../DerivedData/lldb/Build/Products/Debug/lldb.py 
    def SetErrorStringWithFormat(self, *args):
        """SetErrorStringWithFormat(SBError self, str const * format) -> int"""
        return _lldb.SBError_SetErrorStringWithFormat(self, *args)

swig 3.0.2 from MacPorts?

BTW, this is working on Ubuntu w/Swig 2.0.11
Comment 1 Vince Harron 2015-05-12 09:20:18 PDT
Installed swig 2.0.12 on failing mac, rebuilt, ran tests, looks fixed.

vharron-macbookpro:test vharron$ egrep -A2 SetErrorStringWithFormat ../DerivedData/lldb/Build/Products/Debug/lldb.py 
    def SetErrorStringWithFormat(self, *args):
        """SetErrorStringWithFormat(SBError self, str const * format) -> int"""
        return _lldb.SBError_SetErrorStringWithFormat(self, *args)


Two new failures popped up (both passed when called separately from dotest):

FAIL: LLDB (suite) :: TestCallWithTimeout.py

        options.SetTimeoutInMicroSeconds(1000000)
        value = frame.EvaluateExpression ("wait_a_while (1000)", options)

TIMEOUT: LLDB (suite) :: TestLLDBIterator.py