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

Issue 15743002: Add more escape tests to process_shell_test. (Closed)

Created:
7 years, 7 months ago by Anders Johnsen
Modified:
7 years, 7 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add more escape tests to process_shell_test. BUG=

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -0 lines) Patch
M tests/standalone/io/process_shell_test.dart View 1 chunk +2 lines, -0 lines 4 comments Download

Messages

Total messages: 4 (0 generated)
Anders Johnsen
7 years, 7 months ago (2013-05-22 12:58:39 UTC) #1
Søren Gjesse
lgtm
7 years, 7 months ago (2013-05-22 14:20:55 UTC) #2
kustermann
https://codereview.chromium.org/15743002/diff/1/tests/standalone/io/process_shell_test.dart File tests/standalone/io/process_shell_test.dart (right): https://codereview.chromium.org/15743002/diff/1/tests/standalone/io/process_shell_test.dart#newcode37 tests/standalone/io/process_shell_test.dart:37: test(["arg\\'"]); If you want to make sure that escaping ...
7 years, 7 months ago (2013-05-23 10:26:38 UTC) #3
Anders Johnsen
7 years, 7 months ago (2013-05-23 15:22:57 UTC) #4
Closing issue, see https://codereview.chromium.org/15883003/.

https://codereview.chromium.org/15743002/diff/1/tests/standalone/io/process_s...
File tests/standalone/io/process_shell_test.dart (right):

https://codereview.chromium.org/15743002/diff/1/tests/standalone/io/process_s...
tests/standalone/io/process_shell_test.dart:37: test(["arg\\'"]);
On 2013/05/23 10:26:38, kustermann wrote:
> If you want to make sure that escaping works correctly, you have to use more
> than one argument.

Done.

https://codereview.chromium.org/15743002/diff/1/tests/standalone/io/process_s...
tests/standalone/io/process_shell_test.dart:38: }
On 2013/05/23 10:26:38, kustermann wrote:
> I've one more question regarding the functionality of this. Should I be able
to
> determine the home directory like this?
> Process.runShell("echo", [r"$HOME"])

Please see https://codereview.chromium.org/15883003/.

Powered by Google App Engine
This is Rietveld 408576698