Closed
Bug 1309157
Opened 8 years ago
Closed 8 years ago
conversion-native-function.js test expects hypot() in libc while it's in libm
Categories
(Core :: js-ctypes, defect)
Tracking
()
RESOLVED
FIXED
mozilla52
Tracking | Status | |
---|---|---|
firefox52 | --- | fixed |
People
(Reporter: petr.sumbera, Assigned: petr.sumbera)
Details
Attachments
(1 file, 2 obsolete files)
800 bytes,
patch
|
arai
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0
Build ID: 20160922113459
Steps to reproduce:
conversion-native-function.js expects hypot() in libc. This causes on Solaris following test error.
$ ../../dist/bin/run-mozilla.sh /builds2/psumbera/userland-ff-45.4esr/components/desktop/firefox/build/sparcv7/_virtualenv/bin/python -u /builds2/psumbera/userland-ff-45.4esr/components/desktop/firefox/firefox-45.4.0esr/js/src/jit-test/jit_test.py ../../dist/bin/js ctypes/conversion-native-function.js
/builds2/psumbera/userland-ff-45.4esr/components/desktop/firefox/firefox-45.4.0esr/js/src/jit-test/tests/ctypes/conversion-native-function.js:15:14 Error: couldn't find function symbol in library
Stack:
test@/builds2/psumbera/userland-ff-45.4esr/components/desktop/firefox/firefox-45.4.0esr/js/src/jit-test/tests/ctypes/conversion-native-function.js:15:14
@/builds2/psumbera/userland-ff-45.4esr/components/desktop/firefox/firefox-45.4.0esr/js/src/jit-test/tests/ctypes/conversion-native-function.js:37:3
Exit code: 3
FAIL - ctypes/conversion-native-function.js
[0|1|0|0] 100% ==========================================================>| 0.2s
FAILURES:
/builds2/psumbera/userland-ff-45.4esr/components/desktop/firefox/firefox-45.4.0esr/js/src/jit-test/tests/ctypes/conversion-native-function.js
TIMEOUTS:
----
Note that also Linux and BSD have hypot function in libm. Though I'm not sure why this was not an issue for Linux so far.
Assignee | ||
Comment 1•8 years ago
|
||
Possible patch. Should be verified on linux.
Updated•8 years ago
|
Component: Untriaged → js-ctypes
Product: Firefox → Core
Comment 2•8 years ago
|
||
Thank you for your patch :D
Indeed, the fix works on OSX.
will check on linux shortly.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 3•8 years ago
|
||
confirmed the patch works on debian.
Updated•8 years ago
|
Assignee: nobody → petr.sumbera
Status: NEW → ASSIGNED
Comment 4•8 years ago
|
||
Triggered try run to see it also works on automated tests.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=85ed957f2984
Comment 5•8 years ago
|
||
it passed the tests ("Jit" in OS X 10.6 are pre-existing, ignore them)
Comment 6•8 years ago
|
||
Comment on attachment 8799672 [details] [diff] [review]
Bug1309157.patch
Review of attachment 8799672 [details] [diff] [review]:
-----------------------------------------------------------------
The fix is perfect :)
can you change the commit message to explain the change, instead of the issue?
then, post updated patch and set "review" flag to "?" and ask review from module owner/peer.
Updated•8 years ago
|
Flags: needinfo?(petr.sumbera)
Assignee | ||
Comment 7•8 years ago
|
||
Can I have please review for my change? Sorry I'm not sure how should good commit message look like.
Attachment #8799672 -
Attachment is obsolete: true
Flags: needinfo?(petr.sumbera)
Attachment #8799736 -
Flags: review?(arai.unmht)
Comment 8•8 years ago
|
||
Here's documentation.
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Committing_Rules_and_Responsibilities#Checkin_comment
So, in this case, the commit message should say something like
Bug 1309157 - Looks for hypot in libm instead of libc in conversion-native-function.js
in single line.
Comment 9•8 years ago
|
||
Comment on attachment 8799736 [details] [diff] [review]
Bug1309157.patch
Review of attachment 8799736 [details] [diff] [review]:
-----------------------------------------------------------------
sorry I wasn't clear.
can you please change the commit message (see comment #8)?
Attachment #8799736 -
Flags: review?(arai.unmht) → feedback+
Assignee | ||
Comment 10•8 years ago
|
||
Thank you! Do I need to change also bug synopsis here?
Attachment #8799736 -
Attachment is obsolete: true
Attachment #8799751 -
Flags: review?(arai.unmht)
Comment 11•8 years ago
|
||
Comment on attachment 8799751 [details] [diff] [review]
Bug1309157.patch
Review of attachment 8799751 [details] [diff] [review]:
-----------------------------------------------------------------
Thank you again :D
(In reply to Petr Sumbera from comment #10)
> Do I need to change also bug synopsis here?
no, bug summary should explain the issue, and commit message should explain the fix.
so, this is correct :)
forwarding to bholley, as I'm not module owner/peer here.
Attachment #8799751 -
Flags: review?(bobbyholley)
Attachment #8799751 -
Flags: review?(arai.unmht)
Attachment #8799751 -
Flags: feedback+
Comment 12•8 years ago
|
||
Comment on attachment 8799751 [details] [diff] [review]
Bug1309157.patch
Review of attachment 8799751 [details] [diff] [review]:
-----------------------------------------------------------------
just got a green light from module owner,
adding r+ and clearing additional r?
Attachment #8799751 -
Flags: review?(bobbyholley)
Attachment #8799751 -
Flags: review+
Attachment #8799751 -
Flags: feedback+
Updated•8 years ago
|
Keywords: checkin-needed
Comment 13•8 years ago
|
||
Pushed by cbook@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/9fd0ce9fbf2b
Looks for hypot in libm instead of libc in conversion-native-function.js. r=arai
Keywords: checkin-needed
Comment 14•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox52:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
You need to log in
before you can comment on or make changes to this bug.
Description
•