Skip to content

Commit e00dfe4

Browse files
authored
Limit managed entry point assembly tests to net8.0 and higher (#8022)
1 parent 786f5e2 commit e00dfe4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Tests/Microsoft.Diagnostics.Monitoring.Tool.FunctionalTests/CollectionRuleTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ await ScenarioRunner.SingleTarget(
7272
});
7373
}
7474

75+
#if NET8_0_OR_GREATER
7576
/// <summary>
7677
/// Validates that a startup rule will execute and complete without action beyond
7778
/// discovering the target process.
@@ -110,6 +111,7 @@ await ScenarioRunner.SingleTarget(
110111
ruleCompletedTask = runner.WaitForCollectionRuleCompleteAsync(DefaultRuleName);
111112
});
112113
}
114+
#endif
113115

114116
/// <summary>
115117
/// Validates that a non-startup rule will complete when it has an action limit specified
@@ -289,6 +291,7 @@ await ScenarioRunner.SingleTarget(
289291
});
290292
}
291293

294+
#if NET8_0_OR_GREATER
292295
/// <summary>
293296
/// Validates that a collection rule with a managed entry point assembly name filter can be matched to the
294297
/// target process.
@@ -350,6 +353,7 @@ await ScenarioRunner.SingleTarget(
350353
filteredTask = runner.WaitForCollectionRuleUnmatchedFiltersAsync(DefaultRuleName);
351354
});
352355
}
356+
#endif
353357

354358
/// <summary>
355359
/// Validates that a change in the collection rule configuration is detected and applied correctly.

0 commit comments

Comments
 (0)