| Index: pkg/front_end/lib/src/fasta/testing/suite.dart
|
| diff --git a/pkg/front_end/lib/src/fasta/testing/suite.dart b/pkg/front_end/lib/src/fasta/testing/suite.dart
|
| index d8137f9ae38877ff5d84ff568fce6a5ec4367b30..43070d220bd812766101e88f3321b5b9d091f815 100644
|
| --- a/pkg/front_end/lib/src/fasta/testing/suite.dart
|
| +++ b/pkg/front_end/lib/src/fasta/testing/suite.dart
|
| @@ -192,14 +192,17 @@ class Outline extends Step<TestDescription, Program, FastaContext> {
|
| try {
|
| sourceTarget.read(description.uri);
|
| await dillTarget.writeOutline(null);
|
| - var instrumentation = new ValidatingInstrumentation();
|
| - await instrumentation.loadExpectations(description.uri);
|
| - sourceTarget.loader.instrumentation = instrumentation;
|
| + ValidatingInstrumentation instrumentation;
|
| + if (strongMode) {
|
| + instrumentation = new ValidatingInstrumentation();
|
| + await instrumentation.loadExpectations(description.uri);
|
| + sourceTarget.loader.instrumentation = instrumentation;
|
| + }
|
| p = await sourceTarget.writeOutline(null);
|
| if (fullCompile) {
|
| p = await sourceTarget.writeProgram(null);
|
| - instrumentation.finish();
|
| - if (instrumentation.hasProblems) {
|
| + instrumentation?.finish();
|
| + if (instrumentation != null && instrumentation.hasProblems) {
|
| if (updateExpectations) {
|
| await instrumentation.fixSource(description.uri);
|
| } else {
|
|
|