Chromium Code Reviews| Index: utils/tests/pub/install/path/nonexistent_dir_test.dart |
| diff --git a/utils/tests/pub/install/path/nonexistent_dir_test.dart b/utils/tests/pub/install/path/nonexistent_dir_test.dart |
| index 324a37b3c532a8e64897b7dd4263017dec99e88c..0f807abcbb43842337539c9cc1525291601f4ab2 100644 |
| --- a/utils/tests/pub/install/path/nonexistent_dir_test.dart |
| +++ b/utils/tests/pub/install/path/nonexistent_dir_test.dart |
| @@ -23,9 +23,15 @@ main() { |
| }) |
| ]).scheduleCreate(); |
| + // TODO(rnystrom): The "\" in a Windows path gets treated like a regex |
| + // character, so hack escape. A better fix is to use a literal string |
| + // instead of a RegExp to validate, but that requires us to move the |
| + // stack traces out of the stderr when we invoke pub. |
|
nweiz
2013/02/13 22:16:39
Also reference issue 4706 here
Bob Nystrom
2013/02/13 22:19:25
Done.
|
| + var escapePath = badPath.replaceAll(r"\", r"\\"); |
| + |
| schedulePub(args: ['install'], |
| error: |
| - new RegExp("Could not find package 'foo' at '$badPath'."), |
| + new RegExp("Could not find package 'foo' at '$escapePath'."), |
| exitCode: exit_codes.DATA); |
| }); |
| } |