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

Unified Diff: pkg/analyzer_cli/test/package_prefix_test.dart

Issue 2658863002: Run analyzer_cli asynchronously. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer_cli/test/embedder_test.dart ('k') | pkg/analyzer_cli/test/sdk_ext_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer_cli/test/package_prefix_test.dart
diff --git a/pkg/analyzer_cli/test/package_prefix_test.dart b/pkg/analyzer_cli/test/package_prefix_test.dart
index 1a3f9b0d99a493b732ea707bef41ff364e0cccb2..4bda02e09e4605ce2ad90314a1b7cb982febcece 100644
--- a/pkg/analyzer_cli/test/package_prefix_test.dart
+++ b/pkg/analyzer_cli/test/package_prefix_test.dart
@@ -1,3 +1,4 @@
+import 'dart:async';
import 'dart:io' show exitCode;
import 'package:analyzer_cli/src/driver.dart' show Driver, outSink, errorSink;
@@ -20,8 +21,8 @@ main() {
runner = null;
});
- test('shows only the hint whose package matches the prefix', () {
- runner.run([
+ test('shows only the hint whose package matches the prefix', () async {
+ await runner.run2([
"--packages",
join(testDirectory, 'data', 'package_prefix', 'packagelist'),
"--x-package-warnings-prefix=f",
@@ -58,8 +59,9 @@ class _Runner {
String get stderr => _stderr.toString();
String get stdout => _stdout.toString();
- void run(List<String> args) {
- new Driver().start(args);
+
+ Future<Null> run2(List<String> args) async {
+ await new Driver().start(args);
if (stderr.isNotEmpty) {
fail("Unexpected output to stderr:\n$stderr");
}
« no previous file with comments | « pkg/analyzer_cli/test/embedder_test.dart ('k') | pkg/analyzer_cli/test/sdk_ext_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698