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

Issue 2639043003: Gardening: Fix standalone/io/process_start_exception_test.dart. (Closed)

Created:
3 years, 11 months ago by Vyacheslav Egorov (Google)
Modified:
3 years, 11 months ago
Reviewers:
kustermann
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Gardening: Fix standalone/io/process_start_exception_test.dart. It assumed that an attempt to start a non-existent binary on POSIX always results in ENOENT (2). However this is not true: we are using execvp(...) which attempts to find binaries through PATH (as long as the given filename does not contain `/`) if binary is not found anywhere in the PATH and some folder in PATH is inaccessible then execvp(...) fails with EACCES (13). This caused the test to fail on Android whenever PATH contained /sbin which is inaccessible. We fix the test by clearing PATH for child processes. Fixes issue https://github.com/dart-lang/sdk/issues/28299 R=kustermann@google.com BUG=https://github.com/dart-lang/sdk/issues/28299 Committed: https://github.com/dart-lang/sdk/commit/5143f12685530a8c620fa94d6ce52b22ba2b2773

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -22 lines) Patch
M tests/standalone/io/process_start_exception_test.dart View 2 chunks +12 lines, -22 lines 0 comments Download

Messages

Total messages: 4 (1 generated)
Vyacheslav Egorov (Google)
3 years, 11 months ago (2017-01-17 21:58:45 UTC) #1
kustermann
LGTM - nice catch!
3 years, 11 months ago (2017-01-18 11:29:35 UTC) #2
Vyacheslav Egorov (Google)
3 years, 11 months ago (2017-01-18 12:23:36 UTC) #4
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
5143f12685530a8c620fa94d6ce52b22ba2b2773 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698