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

Issue 2234343004: Fix zero_termination tests in the bots (fixes #27066) (Closed)

Created:
4 years, 4 months ago by Siggi Cherem (dart-lang)
Modified:
4 years, 4 months ago
Reviewers:
Bill Hesse, sra1
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix zero_termination tests in the bots. This test only fails in the bots because they don't build the SDK, they use a prebuilt SDK. The script called sdk/bin/dart2js which assumes you have a binary under out/ReleaseX64/dart. R=sra@google.com Committed: https://github.com/dart-lang/sdk/commit/2c7f73735397e8a199098f878f2038df8d6b9142

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -5 lines) Patch
M tests/compiler/dart2js/zero_termination_test.dart View 1 chunk +8 lines, -5 lines 4 comments Download

Messages

Total messages: 9 (4 generated)
Siggi Cherem (dart-lang)
4 years, 4 months ago (2016-08-12 17:34:35 UTC) #4
sra1
lgtm
4 years, 4 months ago (2016-08-12 17:51:58 UTC) #5
Siggi Cherem (dart-lang)
Committed patchset #1 (id:20001) manually as 2c7f73735397e8a199098f878f2038df8d6b9142 (presubmit successful).
4 years, 4 months ago (2016-08-12 17:54:02 UTC) #7
Bill Hesse
LGTM, but think about the comments. https://codereview.chromium.org/2234343004/diff/20001/tests/compiler/dart2js/zero_termination_test.dart File tests/compiler/dart2js/zero_termination_test.dart (right): https://codereview.chromium.org/2234343004/diff/20001/tests/compiler/dart2js/zero_termination_test.dart#newcode52 tests/compiler/dart2js/zero_termination_test.dart:52: String dart2jsPath = ...
4 years, 4 months ago (2016-08-12 19:01:31 UTC) #8
Siggi Cherem (dart-lang)
4 years, 4 months ago (2016-08-12 20:21:14 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/2234343004/diff/20001/tests/compiler/dart2js/...
File tests/compiler/dart2js/zero_termination_test.dart (right):

https://codereview.chromium.org/2234343004/diff/20001/tests/compiler/dart2js/...
tests/compiler/dart2js/zero_termination_test.dart:52: String dart2jsPath =
path.normalize(
On 2016/08/12 19:01:31, Bill Hesse wrote:
> Maybe check if this exists, and don't fail if it is missing?
> 
> But I'm happy with changing tests so they only work when run from an SDK, not
> from executables and scripts all over the checkout.

I'd be afraid that the test would be "passing" but not running in that case.

https://codereview.chromium.org/2234343004/diff/20001/tests/compiler/dart2js/...
tests/compiler/dart2js/zero_termination_test.dart:55: List allArgs =
['--package-root=${Platform.packageRoot}',
On 2016/08/12 19:01:31, Bill Hesse wrote:
> I'm just working on removing packageRoot from test scripts today.  These will
> soon be run with a package spec file, not a package root.

good point - we should fix it to pass along whichever was specified in the first
place.

Powered by Google App Engine
This is Rietveld 408576698