diff --git a/pkg/test_runner/lib/src/static_error.dart b/pkg/test_runner/lib/src/static_error.dart index d1b6da833557..b354b52dd0c1 100644 --- a/pkg/test_runner/lib/src/static_error.dart +++ b/pkg/test_runner/lib/src/static_error.dart @@ -396,6 +396,7 @@ class StaticError implements Comparable { /// /// Takes into account unspecified errors and errors without lengths. bool _matchLocation(StaticError actual) { + if (path != actual.path) return false; if (line != actual.line) return false; // Ignore column and length for unspecified errors.