dotnet-installer/test/dotnet.Tests
Peter Huene b2b3947c68
Fix Razor server shutdown on Windows.
On Windows, the Razor server correctly creates the pid file with
`FileAccess.Write` and `FileOptions.DeleteOnClose`.  This requires a share mode
of `FileShare.Write | FileShare.Delete` to open.  However, the
`dotnet build-server shutdown` command was opening the file with
`FileShare.Read`.  As a result, an `IOException` was being thrown and was not
handled.

This change first opens the file with the appropriate share access and also
properly handles a failure to access or read the contents of the pid file.

Additionally, an integration test was added to test that Razor server shutdown
works as expected.

Fixes #9158.
2018-04-27 13:52:17 -07:00
..
BuildServerTests Fix Razor server shutdown on Windows. 2018-04-27 13:52:17 -07:00
CommandTests Fix Razor server shutdown on Windows. 2018-04-27 13:52:17 -07:00
ParserTests Rename buildserver command. 2018-04-17 17:04:12 -07:00
BundledTargetFramworkTests.cs Global tools package obtain (#8035) 2017-11-21 20:10:06 -08:00
CommandLineApplicationTests.cs Make dotnet.Tests pass on localized setup 2017-06-12 17:31:40 -07:00
CommandObjectTests.cs Give a different error to guide use to install via global tools (#9070) 2018-04-17 12:21:20 -07:00
dotnet.Tests.csproj Implement tests for the list tool command. 2018-03-05 10:18:48 -08:00
FakeRecordEventNameTelemetry.cs Add telemetry data points for .NET Core 2.0 2017-07-27 09:55:40 -07:00
GivenThatDotNetRunsCommands.cs Make dotnet.Tests pass on localized setup 2017-06-12 17:31:40 -07:00
GivenThatICareAboutVBApps.cs Update test code to use netcoreapp2.1 2017-08-18 15:36:01 -07:00
GivenThatIWantToManageMulticoreJIT.cs Remove TAM (#5670) 2017-02-15 15:35:03 -08:00
GivenThatTheUserIsRunningDotNetForTheFirstTime.cs Localizing portions of dotnet --info. 2018-03-07 12:39:46 -08:00
GivenThatTheUserRequestsHelp.cs Fix tests for cache => store rename. 2017-04-07 15:51:37 -05:00
MSBuild.exe shorten random package name, address pr feedback 2016-12-20 13:53:21 -08:00
MSBuild.exe.config shorten random package name, address pr feedback 2016-12-20 13:53:21 -08:00
PackagedCommandTests.cs Update tool tests to target netcoreapp2.1 2017-08-18 18:07:14 -07:00
PrintableTableTests.cs Implement a printable table. 2018-02-27 15:57:53 -08:00
TelemetryCommandTest.cs Fix merge 2 2017-10-31 13:37:28 -07:00
TelemetryCommonPropertiesTests.cs Log Windows product type and installation type, and Linux libc version (#8688) 2018-02-27 18:55:35 -08:00
TestCommandExtensions.cs Remove use of Microsoft.Extensions.PlatformAbstractions 2016-06-08 16:28:52 -07:00
VersionTest.cs Update expected SDK version test to work with multiple stages 2017-08-24 15:51:38 -07:00