Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
parallel tester fix (#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdeligia authored Jun 12, 2019
1 parent da2a777 commit 1b70405
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 42 deletions.
8 changes: 5 additions & 3 deletions Tools/Testing/Tester/Interfaces/ITestingProcess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@

#if NET46
using System.ServiceModel;
#endif

using Microsoft.PSharp.TestingServices.Coverage;
#endif

namespace Microsoft.PSharp.TestingServices
{
Expand All @@ -15,14 +16,15 @@ namespace Microsoft.PSharp.TestingServices
/// </summary>
#if NET46
[ServiceContract(Namespace = "Microsoft.PSharp")]
[ServiceKnownType("GetKnownTypes", typeof(KnownTypesProvider))]
[ServiceKnownType(typeof(TestReport))]
[ServiceKnownType(typeof(CoverageInfo))]
[ServiceKnownType(typeof(Transition))]
#endif
internal interface ITestingProcess
{
/// <summary>
/// Returns the test report.
/// </summary>
/// <returns>TestReport</returns>
#if NET46
[OperationContract]
#endif
Expand Down
18 changes: 12 additions & 6 deletions Tools/Testing/Tester/Interfaces/ITestingProcessScheduler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,37 @@
#if NET46
using System.ServiceModel;

using Microsoft.PSharp.TestingServices.Coverage;
#endif

namespace Microsoft.PSharp.TestingServices
{
/// <summary>
/// Interface for a remote P# testing process scheduler.
/// </summary>
#if NET46
[ServiceContract(Namespace = "Microsoft.PSharp")]
[ServiceKnownType("GetKnownTypes", typeof(KnownTypesProvider))]
[ServiceKnownType(typeof(TestReport))]
[ServiceKnownType(typeof(CoverageInfo))]
[ServiceKnownType(typeof(Transition))]
#endif
internal interface ITestingProcessScheduler
{
/// <summary>
/// Notifies the testing process scheduler
/// that a bug was found.
/// </summary>
/// <param name="processId">Unique process id</param>
/// <returns>Boolean value</returns>
#if NET46
[OperationContract]
#endif
void NotifyBugFound(uint processId);

/// <summary>
/// Sets the test report from the specified process.
/// </summary>
/// <param name="testReport">TestReport</param>
/// <param name="processId">Unique process id</param>
#if NET46
[OperationContract]
#endif
void SetTestReport(TestReport testReport, uint processId);
}
}
#endif
33 changes: 0 additions & 33 deletions Tools/Testing/Tester/Interfaces/KnownTypesProvider.cs

This file was deleted.

0 comments on commit 1b70405

Please sign in to comment.