Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestDefaultConstructorForAPIObjects.py fails on some Macs #23862

Open
llvmbot opened this issue May 12, 2015 · 1 comment
Open

TestDefaultConstructorForAPIObjects.py fails on some Macs #23862

llvmbot opened this issue May 12, 2015 · 1 comment
Labels
bugzilla Issues migrated from bugzilla lldb

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented May 12, 2015

Bugzilla Link 23488
Version unspecified
OS MacOS X
Reporter LLVM Bugzilla Contributor

Extended Description

======================================================================
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

@llvmbot
Copy link
Collaborator Author

llvmbot commented May 12, 2015

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

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla lldb
Projects
None yet
Development

No branches or pull requests

1 participant