Closed
Bug 1091551
Opened 11 years ago
Closed 11 years ago
Telephony marionette tests fails in test_audiomanager_phonestate.js and test_incomingcall_phonestate_speaker.js
Categories
(Firefox OS Graveyard :: RIL, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
2.1 S8 (7Nov)
People
(Reporter: edgar, Assigned: aknow)
Details
Attachments
(2 files, 2 obsolete files)
3.00 KB,
patch
|
hsinyi
:
review+
|
Details | Diff | Splinter Review |
8.94 KB,
patch
|
hsinyi
:
review+
|
Details | Diff | Splinter Review |
full log: http://ftp.mozilla.org/pub/mozilla.org/b2g/try-builds/echen@mozilla.com-29bef366dd77/try-emulator/try_ubuntu64_vm-b2g-emulator_test-marionette-webapi-bm52-tests1-linux64-build1014.txt.gz
I can reproduce this with latest emulator + m-c. :(
Reporter | ||
Comment 1•11 years ago
|
||
test_audiomanager_phonestate.js :
> 00:54:59 INFO - 10-30 07:16:22.015 I/Gecko ( 44): MARIONETTE LOG: INFO: Remote hanging up the call.
> 00:54:59 INFO - 10-30 07:16:22.245 I/Gecko ( 44): MARIONETTE LOG: INFO: Received 'disconnected' call event.
> 00:54:59 INFO - 10-30 07:16:22.255 I/Gecko ( 44): MARIONETTE TEST RESULT:TEST-PASS | test_audiomanager_phonestate.js | event.call - [object TelephonyCall] should equal [object TelephonyCall]
> 00:54:59 INFO - 10-30 07:16:22.255 I/Gecko ( 44): MARIONETTE TEST RESULT:TEST-PASS | test_audiomanager_phonestate.js | call state - disconnected should equal disconnected
> 00:54:59 INFO - 10-30 07:16:22.265 I/Gecko ( 44): MARIONETTE TEST RESULT:TEST-PASS | test_audiomanager_phonestate.js | telephony.speakerEnabled - false should equal false
> 00:54:59 INFO - 10-30 07:16:22.275 I/Gecko ( 44): MARIONETTE TEST RESULT:TEST-UNEXPECTED-FAIL | test_audiomanager_phonestate.js | audioManager.phoneState - got 2, expected 0
> 00:54:59 INFO - 10-30 07:16:22.305 I/Gecko ( 44): MARIONETTE TEST RESULT:TEST-PASS | test_audiomanager_phonestate.js | telephony.speakerEnabled - true should equal true
> 00:54:59 INFO - 10-30 07:16:22.315 I/Gecko ( 44): MARIONETTE TEST RESULT:TEST-UNEXPECTED-FAIL | test_audiomanager_phonestate.js | audioManager.phoneState - got 2, expected 0
> 00:54:59 INFO - 10-30 07:16:22.335 I/Gecko ( 44): MARIONETTE TEST RESULT:TEST-PASS | test_audiomanager_phonestate.js | telephony.speakerEnabled - false should equal false
> 00:54:59 INFO - 10-30 07:16:22.345 I/Gecko ( 44): MARIONETTE TEST RESULT:TEST-UNEXPECTED-FAIL | test_audiomanager_phonestate.js | audioManager.phoneState - got 2, expected 0
> ...
test_incomingcall_phonestate_speaker.js :
> 00:55:06 INFO - 10-30 07:18:38.376 I/Gecko ( 44): MARIONETTE LOG: INFO: Received 'disconnected' call event.
> 00:55:06 INFO - 10-30 07:18:38.385 I/Gecko ( 44): MARIONETTE TEST RESULT:TEST-PASS | test_incomingcall_phonestate_speaker.js | event.call - [object TelephonyCall] should equal [object TelephonyCall]
> 00:55:06 INFO - 10-30 07:18:38.385 I/Gecko ( 44): MARIONETTE TEST RESULT:TEST-PASS | test_incomingcall_phonestate_speaker.js | call state - disconnected should equal disconnected
> 00:55:06 INFO - 10-30 07:18:38.405 I/Gecko ( 44): MARIONETTE TEST RESULT:TEST-UNEXPECTED-FAIL | test_incomingcall_phonestate_speaker.js | audioManager.phoneState - got 2, expected 0
> 00:55:06 INFO - 10-30 07:18:38.425 I/Gecko ( 44): MARIONETTE TEST RESULT:TEST-UNEXPECTED-FAIL | test_incomingcall_phonestate_speaker.js | audioManager.phoneState - got 2, expected 0
> ...
Looks like something related to call drop and audioManager.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → szchen
Assignee | ||
Comment 2•11 years ago
|
||
Race condition.
Original code is not wrong. Just change it to match our test code.
Attachment #8514232 -
Flags: review?(htsai)
Assignee | ||
Comment 3•11 years ago
|
||
Attachment #8514233 -
Flags: review?(htsai)
Assignee | ||
Comment 4•11 years ago
|
||
Attachment #8514232 -
Attachment is obsolete: true
Attachment #8514232 -
Flags: review?(htsai)
Attachment #8514235 -
Flags: review?(htsai)
Updated•11 years ago
|
Attachment #8514233 -
Flags: review?(htsai) → review+
Comment 6•11 years ago
|
||
Comment on attachment 8514235 [details] [diff] [review]
Part 1#2: Notify callDisconnected after audioStateChanged
Review of attachment 8514235 [details] [diff] [review]:
-----------------------------------------------------------------
Works well.
Attachment #8514235 -
Flags: review?(htsai) → review+
Assignee | ||
Comment 7•11 years ago
|
||
Modify the test. Now, we could pass the test even without applying part 1 patch. But I still plan to land the part 1 along with this change.
Attachment #8514233 -
Attachment is obsolete: true
Flags: needinfo?(szchen)
Attachment #8514893 -
Flags: review?(htsai)
Comment 8•11 years ago
|
||
Comment on attachment 8514893 [details] [diff] [review]
Part 2#2: Correct test case
Review of attachment 8514893 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/telephony/test/marionette/test_incomingcall_phonestate_speaker.js
@@ -1,1 @@
> -/* Any copyright is dedicated to the Public Domain.
Thanks for the clean up.
Attachment #8514893 -
Flags: review?(htsai) → review+
Assignee | ||
Comment 9•11 years ago
|
||
Assignee | ||
Comment 10•11 years ago
|
||
Comment 11•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/2af85149315f
https://hg.mozilla.org/mozilla-central/rev/28b3c944c705
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → 2.1 S8 (7Nov)
You need to log in
before you can comment on or make changes to this bug.
Description
•