Bug 172654 - REEGRESSION(r217459): testapi fails in JSExportTest's wrapperForNSObjectisObject().
Summary: REEGRESSION(r217459): testapi fails in JSExportTest's wrapperForNSObjectisObj...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Keith Miller
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-05-26 12:28 PDT by Mark Lam
Modified: 2017-05-30 20:21 PDT (History)
6 users (show)

See Also:


Attachments
Patch (1.59 KB, patch)
2017-05-26 15:47 PDT, Keith Miller
no flags Details | Formatted Diff | Diff
Patch for landing (1.73 KB, patch)
2017-05-26 18:54 PDT, Keith Miller
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Lam 2017-05-26 12:28:33 PDT
After r217459, we get:
...
2017-05-26 12:15:07.775 testapi[92608:83259983] TEST: "Should not throw an exception when wrapping NSObject and Object has been changed": FAILED
...
FAIL: Some tests failed.
Comment 1 Keith Miller 2017-05-26 15:47:10 PDT
Created attachment 311386 [details]
Patch
Comment 2 Mark Lam 2017-05-26 15:56:27 PDT
Comment on attachment 311386 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=311386&action=review

r=me with suggestion.

> Source/JavaScriptCore/ChangeLog:8
> +        Fix the test to make sure we don't not check for an exception.

How about rephrasing this as:
The test's intent is to assert that an exception has not been thrown (as indicated by the message string), but the test was erroneously checking for the opposite condition.  This is now fixed.
Comment 3 Keith Miller 2017-05-26 18:45:54 PDT
Comment on attachment 311386 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=311386&action=review

>> Source/JavaScriptCore/ChangeLog:8
>> +        Fix the test to make sure we don't not check for an exception.
> 
> How about rephrasing this as:
> The test's intent is to assert that an exception has not been thrown (as indicated by the message string), but the test was erroneously checking for the opposite condition.  This is now fixed.

I changed it to:

"The test's intent is to assert that an exception has not been thrown (as indicated by the message string), but the test was erroneously checking for !! the condition. This is now fixed."

gotta preserve my pun..
Comment 4 Keith Miller 2017-05-26 18:49:37 PDT
Actually, make that:

The test's intent is to assert that an exception has not been thrown (as indicated by the message string), but the test was erroneously checking for ! the right condition. This is now fixed.
Comment 5 Keith Miller 2017-05-26 18:54:54 PDT
Created attachment 311402 [details]
Patch for landing
Comment 6 WebKit Commit Bot 2017-05-26 19:33:12 PDT
Comment on attachment 311402 [details]
Patch for landing

Clearing flags on attachment: 311402

Committed r217517: <http://trac.webkit.org/changeset/217517>
Comment 7 WebKit Commit Bot 2017-05-26 19:33:14 PDT
All reviewed patches have been landed.  Closing bug.
Comment 8 Radar WebKit Bug Importer 2017-05-30 20:21:09 PDT
<rdar://problem/32479700>