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

Issue 2238983003: Fuchsia: Improves run_vm_tests wrapper program. (Closed)

Created:
4 years, 4 months ago by zra
Modified:
4 years, 4 months ago
Reviewers:
siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fuchsia: Improves run_vm_tests wrapper program. This change makes a few improvements to Fuchsia's wrapper around run_vm_tests: - Loads the binary into memory only once, speeding things up a bit. - Captures the output of 'run_vm_tests --list' to extract the list of tests to run instead of reading it from a file. - Captures the output of the tests, and prints a test's stdout and stderr to the console only if the test failed. R=asiva@google.com Committed: https://github.com/dart-lang/sdk/commit/c21891ec6a143c1188581b54d26c3ab92ae47ec9

Patch Set 1 #

Total comments: 9

Patch Set 2 : Address comments, cleanup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+218 lines, -98 lines) Patch
M runtime/bin/BUILD.gn View 1 1 chunk +4 lines, -1 line 0 comments Download
M runtime/bin/run_vm_tests_fuchsia.cc View 1 9 chunks +214 lines, -97 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
zra
4 years, 4 months ago (2016-08-11 21:13:16 UTC) #2
zra
ping
4 years, 4 months ago (2016-08-17 21:54:06 UTC) #3
siva
lgtm https://codereview.chromium.org/2238983003/diff/1/runtime/bin/run_vm_tests_fuchsia.cc File runtime/bin/run_vm_tests_fuchsia.cc (right): https://codereview.chromium.org/2238983003/diff/1/runtime/bin/run_vm_tests_fuchsia.cc#newcode169 runtime/bin/run_vm_tests_fuchsia.cc:169: launchpad_destroy(lp); Missing if (stdout_out != NULL) { close(*stdout_out); ...
4 years, 4 months ago (2016-08-18 00:38:46 UTC) #4
zra
https://codereview.chromium.org/2238983003/diff/1/runtime/bin/run_vm_tests_fuchsia.cc File runtime/bin/run_vm_tests_fuchsia.cc (right): https://codereview.chromium.org/2238983003/diff/1/runtime/bin/run_vm_tests_fuchsia.cc#newcode169 runtime/bin/run_vm_tests_fuchsia.cc:169: launchpad_destroy(lp); On 2016/08/18 00:38:46, siva wrote: > Missing > ...
4 years, 4 months ago (2016-08-18 15:49:32 UTC) #5
zra
Committed patchset #2 (id:20001) manually as c21891ec6a143c1188581b54d26c3ab92ae47ec9 (presubmit successful).
4 years, 4 months ago (2016-08-18 15:50:31 UTC) #7
siva
4 years, 4 months ago (2016-08-18 16:06:12 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/2238983003/diff/1/runtime/bin/run_vm_tests_fu...
File runtime/bin/run_vm_tests_fuchsia.cc (right):

https://codereview.chromium.org/2238983003/diff/1/runtime/bin/run_vm_tests_fu...
runtime/bin/run_vm_tests_fuchsia.cc:344: int test_status = run_test(vmo_dup,
test, &test_stdout, &test_stderr);
On 2016/08/18 15:49:31, zra wrote:
> On 2016/08/18 00:38:46, siva wrote:
> > should this be :
> > if (test_status != -1) {
> >   handle_result(...);
> >   free(test_stdout);
> >   free(test_stderr);
> > }
> 
> -1 is a return code from run_test that we need to report/handle. free() is
NULL
> safe.

but test_stdout and test_stderr are not being set to NULL after the free when
return code is -1.

Powered by Google App Engine
This is Rietveld 408576698