{
public class EventLogSourceCreationTests
{
- [Trait(XunitConstants.Category, "EventLog")] // Unreliable Win32 API call
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/36135")]
[ConditionalFact(typeof(Helpers), nameof(Helpers.IsElevatedAndSupportsEventLogs))]
public void CheckSourceExistenceAndDeletion()
{
Assert.False(EventLog.SourceExists(source));
}
- [Trait(XunitConstants.Category, "EventLog")] // Unreliable Win32 API call
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/36135")]
[ConditionalFact(typeof(Helpers), nameof(Helpers.IsElevatedAndSupportsEventLogs))]
[SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework)]
public void LogNameWithSame8FirstChars_NetCore()
}
}
- [Trait(XunitConstants.Category, "EventLog")] // Unreliable Win32 API call
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/36135")]
[ConditionalFact(typeof(Helpers), nameof(Helpers.IsElevatedAndSupportsEventLogs))]
[SkipOnTargetFramework(~TargetFrameworkMonikers.NetFramework)]
public void LogNameWithSame8FirstChars_NetFramework()
Assert.Throws<ArgumentNullException>(() => EventLog.CreateEventSource(null));
}
- [Trait(XunitConstants.Category, "EventLog")] // Unreliable Win32 API call
+ [ActiveIssue("https://github.com/dotnet/runtime/issues/36135")]
[ConditionalFact(typeof(Helpers), nameof(Helpers.IsElevatedAndSupportsEventLogs))]
public void SourceAlreadyExistsWhenCreatingSource()
{