Index: tools/testing/dart/test_suite.dart |
diff --git a/tools/testing/dart/test_suite.dart b/tools/testing/dart/test_suite.dart |
index d04015946cf292bf44560862d90d8fd5ebb7893c..cf6a1a05fbd4bae5108d92bcce161337a39810f4 100644 |
--- a/tools/testing/dart/test_suite.dart |
+++ b/tools/testing/dart/test_suite.dart |
@@ -302,7 +302,8 @@ abstract class TestSuite { |
if (configuration['hot_reload'] || configuration['hot_reload_rollback']) { |
// Handle reload special cases. |
- if (expectations.contains(Expectation.COMPILETIME_ERROR)) { |
+ if (expectations.contains(Expectation.COMPILETIME_ERROR) || |
+ testCase.hasCompileError || testCase.expectCompileError) { |
// Running a test that expects a compilation error with hot reloading |
// is redundant with a regular run of the test. |
return; |