Index: tests/compiler/dart2js/dill_loader_test.dart |
diff --git a/tests/compiler/dart2js/dill_loader_test.dart b/tests/compiler/dart2js/dill_loader_test.dart |
index 9bf70242b4ff45f83cd25f485bb2fa17abcd6d5a..bbdb6260cfc8e3f3d9cd4845339b2e20c94ca550 100644 |
--- a/tests/compiler/dart2js/dill_loader_test.dart |
+++ b/tests/compiler/dart2js/dill_loader_test.dart |
@@ -52,8 +52,8 @@ main() { |
..packagesFileUri = Platform.script.resolve('../../../.packages') |
..compileSdk = true |
..linkedDependencies = [platform] |
- ..verify = true |
- ..onError = errorHandler; |
+ ..setExitCodeOnProblem = true |
+ ..verify = true; |
List<int> kernelBinary = |
serializeProgram(await kernelForProgram(uri, options)); |
@@ -79,8 +79,3 @@ main() { |
Expect.isNotNull(member); |
}); |
} |
- |
-void errorHandler(CompilationError e) { |
- exitCode = 1; |
- print(e.message); |
-} |