[haiku-bugs] Re: [Haiku] #12799: Unit test BClipboard::Clear1 crashes

  • From: "markh" <trac@xxxxxxxxxxxx>
  • Date: Sat, 28 May 2016 17:50:23 -0000

#12799: Unit test BClipboard::Clear1 crashes
------------------------------------+----------------------------
   Reporter:  markh                 |      Owner:  axeld
       Type:  bug                   |     Status:  new
   Priority:  normal                |  Milestone:  Unscheduled
  Component:  Kits/Application Kit  |    Version:  R1/Development
 Resolution:                        |   Keywords:
 Blocked By:                        |   Blocking:
Has a Patch:  1                     |   Platform:  All
------------------------------------+----------------------------

Comment (by markh):

 I did some digging into the source and found what Info was referring to.
 He added elf symbol patching support for catching debugger calls, but it
 was only enabled if building from BeOS x86. I changed the Jamfile to also
 enable it from Haiku, but had to move one include from a cpp file to a
 header file.
 If this can be avoided that would be better, but I did not see how I could
 get that to work.

 With these changes, the BClipboard tests pass again as is. There is still
 the problem that the documentation is incorrect and the code implies that
 B_NOT_ALLOWED will be returned if the clipboard is not locked, but it may
 be better to patch that separately.

--
Ticket URL: <https://dev.haiku-os.org/ticket/12799#comment:9>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: