Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 0 additions & 53 deletions src/Scenarios/InterProcessCommunication.sln

This file was deleted.

This file was deleted.

This file was deleted.

54 changes: 0 additions & 54 deletions src/Scenarios/tests/InterProcessCommunication/SemaphoreTests.cs

This file was deleted.

22 changes: 0 additions & 22 deletions src/Scenarios/tests/InterProcessCommunication/project.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
// See the LICENSE file in the project root for more information.

using System.Diagnostics;
using System.IO;
using System.IO.MemoryMappedFiles;
using Xunit;

namespace InterProcessCommunication.Tests
namespace System.IO.MemoryMappedFiles.Tests
{
public class MemoryMappedFilesTests : RemoteExecutorTestBase
public class CrossProcessTests : RemoteExecutorTestBase
{
[Fact]
public void DataShared()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition="'$(Configuration)'==''">Windows_Debug</Configuration>
Expand All @@ -22,6 +22,7 @@
<Compile Include="MemoryMappedFile.CreateOrOpen.Tests.cs" />
<Compile Include="MemoryMappedFile.OpenExisting.Tests.cs" />
<Compile Include="MemoryMappedFile.CreateNew.Tests.cs" />
<Compile Include="MemoryMappedFile.CrossProcess.cs" />
<Compile Include="MemoryMappedViewStream.Tests.cs" />
<Compile Include="MemoryMappedViewAccessor.Tests.cs" />
<Compile Include="MemoryMappedFilesTestsBase.cs" />
Expand All @@ -31,6 +32,9 @@
<Compile Include="$(CommonTestPath)\System\IO\TempFile.cs">
<Link>Common\System\IO\TempFile.cs</Link>
</Compile>
<Compile Include="$(CommonTestPath)\System\Diagnostics\RemoteExecutorTestBase.cs">
<Link>Common\System\Diagnostics\RemoteExecutorTestBase.cs</Link>
</Compile>
<Compile Include="$(CommonTestPath)\System\IO\FileCleanupTestBase.cs">
<Link>Common\System\IO\FileCleanupTestBase.cs</Link>
</Compile>
Expand All @@ -51,6 +55,10 @@
<Project>{16EE5522-F387-4C9E-9EF2-B5134B043F37}</Project>
<Name>System.IO.MemoryMappedFiles</Name>
</ProjectReference>
<ProjectReference Include="$(CommonTestPath)\System\Diagnostics\RemoteExecutorConsoleApp\RemoteExecutorConsoleApp.csproj">
<Project>{69e46a6f-9966-45a5-8945-2559fe337827}</Project>
<Name>RemoteExecutorConsoleApp</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
</Project>
1 change: 1 addition & 0 deletions src/System.IO.MemoryMappedFiles/tests/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"dependencies": {
"Microsoft.DotNet.xunit.performance": "1.0.0-alpha-build0029",
"Microsoft.NETCore.Platforms": "1.0.1-rc3-23910",
"System.Diagnostics.Process": "4.1.0-rc3-23910",
"System.IO": "4.0.10",
"System.IO.FileSystem": "4.0.0",
"System.IO.FileSystem.Primitives": "4.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
// See the LICENSE file in the project root for more information.

using System.Diagnostics;
using System.IO;
using System.IO.Pipes;
using Xunit;

namespace InterProcessCommunication.Tests
namespace System.IO.Pipes.Tests
{
public class AnonymousPipesTests : RemoteExecutorTestBase
public class AnonymousPipeTest_CrossProcess : RemoteExecutorTestBase
{
[Fact]
public void PingPong()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,26 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using System.Diagnostics;
using System.IO.Pipes;
using System.Threading.Tasks;
using Xunit;

namespace InterProcessCommunication.Tests
namespace System.IO.Pipes.Tests
{
public class NamedPipesTests : RemoteExecutorTestBase
public sealed class NamedPipeTest_CrossProcess : RemoteExecutorTestBase
{
[Fact]
public void PingPong()
[Theory]
[InlineData(PipeDirection.Out, PipeDirection.In)]
public void PingPong(PipeDirection outboundDirection, PipeDirection inboundDirection)
{
// Create names for two pipes
string outName = Guid.NewGuid().ToString("N");
string inName = Guid.NewGuid().ToString("N");

// Create the two named pipes, one for each direction, then create
// another process with which to communicate
using (var outbound = new NamedPipeServerStream(outName, PipeDirection.Out))
using (var inbound = new NamedPipeClientStream(".", inName, PipeDirection.In))
using (var outbound = new NamedPipeServerStream(outName, outboundDirection))
using (var inbound = new NamedPipeClientStream(".", inName, inboundDirection))
using (var remote = RemoteInvoke(PingPong_OtherProcess, outName, inName))
{
// Wait for both pipes to be connected
Expand Down
Loading