Index: sdk/lib/_internal/pub/test/install/path/nonexistent_dir_test.dart |
diff --git a/sdk/lib/_internal/pub/test/install/path/nonexistent_dir_test.dart b/sdk/lib/_internal/pub/test/install/path/nonexistent_dir_test.dart |
index 053c9225ad8922471c05c6991e125a46c1203320..35648173e87b8e274dbebd1c1adc2b0e80d49001 100644 |
--- a/sdk/lib/_internal/pub/test/install/path/nonexistent_dir_test.dart |
+++ b/sdk/lib/_internal/pub/test/install/path/nonexistent_dir_test.dart |
@@ -24,15 +24,6 @@ main() { |
}) |
]).create(); |
- // 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. See also: #4706. |
- var escapePath = badPath.replaceAll(r"\", r"\\"); |
- |
- schedulePub(args: ['install'], |
- error: |
- new RegExp("Could not find package 'foo' at '$escapePath'."), |
- exitCode: 1); |
+ pubInstall(error: "Could not find package 'foo' at '$badPath'."); |
}); |
} |