protected override bool InitSandboxedKextConnection(LoggingContext loggingContext, IKextConnection kextConnection = null) { if (SandboxingWithKextEnabled) { SandboxedKextConnection = kextConnection ?? XunitBuildXLTest.GetSandboxedKextConnection(); } return(false); }
protected override bool InitSandboxConnectionKext(LoggingContext loggingContext, ISandboxConnection SandboxConnectionKext = null) { if (SandboxingWithKextEnabled) { SandboxConnection = SandboxConnectionKext ?? XunitBuildXLTest.GetSandboxConnection(); } return(false); }
public void DistributedBuildConnectivityIssueTrumpsOtherErrors() { var loggingContext = XunitBuildXLTest.CreateLoggingContextForTest(); using (var listener = new TrackingEventListener(Events.Log)) { listener.RegisterEventSource(global::BuildXL.Engine.ETWLogger.Log); listener.RegisterEventSource(global::BuildXL.Scheduler.ETWLogger.Log); global::BuildXL.Scheduler.Tracing.Logger.Log.PipMaterializeDependenciesFromCacheFailure(loggingContext, "ArbitraryPip", "ArbitraryMessage"); global::BuildXL.Engine.Tracing.Logger.Log.DistributionExecutePipFailedNetworkFailure(loggingContext, "ArbitraryPip", "ArbitraryWorker", "ArbitraryMessage", "ArbitraryStep", "ArbitraryCaller"); global::BuildXL.Scheduler.Tracing.Logger.Log.PipMaterializeDependenciesFromCacheFailure(loggingContext, "ArbitraryPip", "ArbitraryMessage"); var infrastructureErrorClassification = BuildXLApp.ClassifyFailureFromLoggedEvents(listener); XAssert.AreEqual(ExitKind.InfrastructureError, infrastructureErrorClassification.ExitKind); XAssert.AreEqual(global::BuildXL.Engine.Tracing.LogEventId.DistributionExecutePipFailedNetworkFailure.ToString(), infrastructureErrorClassification.ErrorBucket); } }