Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Issue 70103014: Make isolate tests work on drt (and hopefully dartium). (Closed)

Created:
7 years, 1 month ago by Lasse Reichstein Nielsen
Modified:
7 years ago
Reviewers:
ricow1, floitsch, ngeoffray, siva
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Make isolate tests work on drt (and hopefully dartium). The current isolate tests don't work in drt/dartium because the DOM isolate can't use Isolate.spawnFunction. To avoid this problem, this change makes the affected tests start out by doing an Isolate.spawnUri with their own main file, therevy running the test in a non-DOM isolate. The test results are propagated back to the original isolate. I haven't been able to test dartium yet. I might be missing Selenium. BUG= http://dartbug.com/14626 R=floitsch@google.com Committed: https://code.google.com/p/dart/source/detail?r=30610

Patch Set 1 #

Patch Set 2 : Unreachabne code. #

Total comments: 2

Patch Set 3 : Merge to head. Inline helper class. #

Patch Set 4 : Made this work with more than one test. Added @MirrorsUsed. Included new tests #

Patch Set 5 : Remove status file lines #

Patch Set 6 : Close the receivePort if we fail spawning. #

Total comments: 3

Patch Set 7 : Retain isolate_stress_test in status file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+273 lines, -117 lines) Patch
M tests/isolate/browser/compute_this_script_browser_test.dart View 2 chunks +3 lines, -1 line 0 comments Download
M tests/isolate/browser/typed_data_message_test.dart View 2 chunks +3 lines, -1 line 0 comments Download
M tests/isolate/count_test.dart View 2 chunks +4 lines, -2 lines 0 comments Download
M tests/isolate/cross_isolate_message_test.dart View 2 chunks +4 lines, -2 lines 0 comments Download
M tests/isolate/illegal_msg_function_test.dart View 2 chunks +25 lines, -27 lines 0 comments Download
M tests/isolate/illegal_msg_mirror_test.dart View 1 2 3 2 chunks +26 lines, -26 lines 0 comments Download
M tests/isolate/isolate.status View 1 2 3 4 5 6 1 chunk +2 lines, -23 lines 0 comments Download
M tests/isolate/isolate_complex_messages_test.dart View 1 chunk +4 lines, -2 lines 0 comments Download
M tests/isolate/mandel_isolate_test.dart View 1 chunk +5 lines, -3 lines 0 comments Download
M tests/isolate/message2_test.dart View 2 chunks +4 lines, -2 lines 0 comments Download
M tests/isolate/message_test.dart View 2 chunks +4 lines, -2 lines 0 comments Download
M tests/isolate/mint_maker_test.dart View 2 chunks +4 lines, -2 lines 0 comments Download
M tests/isolate/nested_spawn2_test.dart View 2 chunks +4 lines, -2 lines 0 comments Download
M tests/isolate/nested_spawn_test.dart View 2 chunks +4 lines, -2 lines 0 comments Download
M tests/isolate/raw_port_test.dart View 1 2 3 4 chunks +11 lines, -5 lines 0 comments Download
A tests/isolate/remote_unittest_helper.dart View 1 2 3 4 5 1 chunk +134 lines, -0 lines 0 comments Download
M tests/isolate/request_reply_test.dart View 2 chunks +4 lines, -2 lines 0 comments Download
M tests/isolate/spawn_function_custom_class_test.dart View 2 chunks +4 lines, -2 lines 0 comments Download
M tests/isolate/spawn_function_test.dart View 2 chunks +4 lines, -2 lines 0 comments Download
M tests/isolate/stacktrace_message_test.dart View 1 chunk +10 lines, -5 lines 0 comments Download
M tests/isolate/static_function_test.dart View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M tests/isolate/unresolved_ports_test.dart View 2 chunks +6 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Lasse Reichstein Nielsen
Can any of you see a problems with this approach? This way of running tests ...
7 years, 1 month ago (2013-11-14 16:22:10 UTC) #1
siva
https://codereview.chromium.org/70103014/diff/40001/tests/isolate/remote_unittest_helper.dart File tests/isolate/remote_unittest_helper.dart (right): https://codereview.chromium.org/70103014/diff/40001/tests/isolate/remote_unittest_helper.dart#newcode21 tests/isolate/remote_unittest_helper.dart:21: */ I find this a little tricky, you probably ...
7 years, 1 month ago (2013-11-14 17:21:08 UTC) #2
siva
Thanks for taking this up.
7 years, 1 month ago (2013-11-14 17:21:39 UTC) #3
ricow1
"I haven't been able to test dartium yet. I might be missing Selenium." No more ...
7 years, 1 month ago (2013-11-15 10:45:14 UTC) #4
Lasse Reichstein Nielsen
https://codereview.chromium.org/70103014/diff/40001/tests/isolate/remote_unittest_helper.dart File tests/isolate/remote_unittest_helper.dart (right): https://codereview.chromium.org/70103014/diff/40001/tests/isolate/remote_unittest_helper.dart#newcode21 tests/isolate/remote_unittest_helper.dart:21: */ Minimizing changes was a goal, yes :) Didn't ...
7 years, 1 month ago (2013-11-15 14:57:45 UTC) #5
siva
I find the 'try it one way, if that fails then try it another way' ...
7 years, 1 month ago (2013-11-15 23:10:57 UTC) #6
Lasse Reichstein Nielsen
On 2013/11/15 23:10:57, siva wrote: > I find the 'try it one way, if that ...
7 years, 1 month ago (2013-11-18 07:32:54 UTC) #7
Lasse Reichstein Nielsen
I kept "main" as the function I pass, also because it makes it easier to ...
7 years, 1 month ago (2013-11-22 14:25:48 UTC) #8
Lasse Reichstein Nielsen
PTAL
7 years, 1 month ago (2013-11-22 14:27:07 UTC) #9
floitsch
LGTM. https://codereview.chromium.org/70103014/diff/220001/tests/isolate/isolate.status File tests/isolate/isolate.status (left): https://codereview.chromium.org/70103014/diff/220001/tests/isolate/isolate.status#oldcode93 tests/isolate/isolate.status:93: [ $compiler == none && ($runtime == drt ...
7 years, 1 month ago (2013-11-22 17:02:03 UTC) #10
Lasse Reichstein Nielsen
https://codereview.chromium.org/70103014/diff/220001/tests/isolate/isolate.status File tests/isolate/isolate.status (left): https://codereview.chromium.org/70103014/diff/220001/tests/isolate/isolate.status#oldcode93 tests/isolate/isolate.status:93: [ $compiler == none && ($runtime == drt || ...
7 years ago (2013-11-25 08:19:41 UTC) #11
Lasse Reichstein Nielsen
7 years ago (2013-11-25 08:20:14 UTC) #12
Message was sent while issue was closed.
Committed patchset #7 manually as r30610 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698