Closed
Bug 676965
Opened 13 years ago
Closed 7 years ago
xpcshell test js/src/xpconnect/tests/unit/test_localeCompare.js fails on Android
Categories
(Core :: XPConnect, defect)
Tracking
()
RESOLVED
FIXED
mozilla57
Tracking | Status | |
---|---|---|
firefox57 | --- | fixed |
People
(Reporter: gbrown, Assigned: m_kato)
References
Details
(Whiteboard: [mobile-testing][xpcshell])
Attachments
(1 file)
With patches for bug 668349 and 668351, xpcshell tests can be run on an Android device, and the majority of tests pass.
However, js/src/xpconnect/tests/unit/test_localeCompare.js consistently fails when run on Android.
Reporter | ||
Updated•13 years ago
|
Whiteboard: [mobile-testing][xpcshell]
Reporter | ||
Comment 1•13 years ago
|
||
make: Entering directory `/home/geoff/src/mozilla-central/objdir-droid/js/src/xpconnect/tests'
/usr/bin/python2.6 -u ../../../../../config/pythonpath.py \
-I../../../../../build \
-I../../../../../build/mobile \
../../../../../testing/xpcshell/remotexpcshelltests.py \
--symbols-path=../../../../dist/crashreporter-symbols \
--build-info-json=../../../../mozinfo.json \
--test-path=test_localeCompare.js \
--profile-name=fennec \
--verbose \
\
--dm_trans=adb \
--deviceIP= \
--objdir=../../../.. \
--noSetup \
../../../../_tests/xpcshell/js/src/xpconnect/tests/unit
208 KB/s (13656 bytes in 0.063s)
will execute commands via run-as org.mozilla.fennec_geoff
using APK: ../../../../dist/fennec-9.0a1.en-US.eabi-arm.apk
chmod /data/local/tests/xpcshell/p
TEST-INFO | profile dir is /data/local/tests/xpcshell/p
TEST-INFO | /home/geoff/src/mozilla-central/objdir-droid/_tests/xpcshell/js/src/xpconnect/tests/unit/test_localeCompare.js | running test ...
cd /data/local/tests/xpcshell/js/src/xpconnect/tests/unit; LD_LIBRARY_PATH=/data/local/tests/xpcshell/b; export CACHE_PATH=/data/local/tests/xpcshell/b; export GRE_HOME=/data/data/org.mozilla.fennec_geoff; export XPCSHELL_TEST_PROFILE_DIR=/data/local/tests/xpcshell/p; /data/local/tests/xpcshell/b/xpcshell -r /data/local/tests/xpcshell/c/httpd.manifest --greomni /data/local/tests/xpcshell/b/fennec-9.0a1.en-US.eabi-arm.apk -j -s -e 'const _HTTPD_JS_PATH = "/data/local/tests/xpcshell/c/httpd.js";' -e 'const _HEAD_JS_PATH = "/data/local/tests/xpcshell/head.js";' -f /data/local/tests/xpcshell/head.js -e 'const _SERVER_ADDR = "localhost"' -e 'const _HEAD_FILES = [];' -e 'const _TAIL_FILES = [];' -e 'const _TEST_FILE = ["test_localeCompare.js"];' -e '_execute_test(); quit(0);'
TEST-UNEXPECTED-FAIL | /home/geoff/src/mozilla-central/objdir-droid/_tests/xpcshell/js/src/xpconnect/tests/unit/test_localeCompare.js | test failed (with xpcshell return code: 0), see following log:
>>>>>>>
TEST-INFO | (xpcshell/head.js) | test 1 pending
TEST-PASS | test_localeCompare.js | [run_test : 2] true == true
TEST-PASS | test_localeCompare.js | [run_test : 3] true == true
TEST-UNEXPECTED-FAIL | test_localeCompare.js | false == true - See following stack:
JS frame :: /data/local/tests/xpcshell/head.js :: do_throw :: line 445
JS frame :: /data/local/tests/xpcshell/head.js :: _do_check_eq :: line 539
JS frame :: /data/local/tests/xpcshell/head.js :: do_check_eq :: line 560
JS frame :: /data/local/tests/xpcshell/head.js :: do_check_true :: line 574
JS frame :: test_localeCompare.js :: run_test :: line 4
JS frame :: /data/local/tests/xpcshell/head.js :: _execute_test :: line 326
JS frame :: -e :: <TOP_LEVEL> :: line 1
TEST-INFO | (xpcshell/head.js) | exiting test
<<<<<<<
INFO | Result summary:
INFO | Passed: 0
INFO | Failed: 1
INFO | Todo: 0
make: *** [check-one-remote] Error 1
make: Leaving directory `/home/geoff/src/mozilla-central/objdir-droid/js/src/xpconnect/tests'
Reporter | ||
Comment 2•13 years ago
|
||
It looks like the failure is at:
do_check_true("\u010C".localeCompare("D") < 0);
Assignee | ||
Comment 3•7 years ago
|
||
I turn off this test by bug 1347431, but since we have land ICU on all channel, we can turn on this.
Depends on: 1344625
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → m_kato
Updated•7 years ago
|
Attachment #8893217 -
Flags: review?(gandalf) → review+
Pushed by m_kato@ga2.so-net.ne.jp:
https://hg.mozilla.org/integration/mozilla-inbound/rev/1db95737d866
Turn on test_localeCompare.js on Android since we use ICU. r=gandalf
Comment 6•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox57:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
You need to log in
before you can comment on or make changes to this bug.
Description
•