[Mono-bugs] [Bug 393429] New: objc2-sharp unit tests fail on PPC
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu May 22 01:06:12 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=393429
Summary: objc2-sharp unit tests fail on PPC
Product: Cocoa#
Version: unspecified
Platform: PowerPC
OS/Version: Mac OS X 10.5
Status: NEW
Severity: Blocker
Priority: P5 - None
Component: Bindings.
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: jesjones at mindspring.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Created an attachment (id=217444)
--> (https://bugzilla.novell.com/attachment.cgi?id=217444)
PPC patch for objc2-sharp
The unit tests crash with an abort trap when an IntPtr return value is used and
fail with unexpected values when bools are used. I've attached a patch for both
of these which works on PPC and will probably work on Intel.
For bool, I think we were wrong even on Intel. The code was marshaling bools as
4-byte values which is not correct for objective-C which uses BOOL, a 1-byte
type, instead of the C++ bool or C-99 _Bool.
The IntPtr problem seems to be some sort of ABI difference that I don't
understand fully. I fixed it by telling Cocoa that IntPtr's are ints instead of
object pointers.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list