dotnet-installer/test/Microsoft.DotNet.Tools.Tests.Utilities
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
..
Assertions Make --no-build imply --no-restore for pack command. 2017-11-27 23:53:22 -08:00
Commands Fix Razor server shutdown on Windows. 2018-04-27 13:52:17 -07:00
Extensions Add missing copyright headers to all cs files 2017-03-02 21:04:03 -08:00
Mock Fix Razor server shutdown on Windows. 2018-04-27 13:52:17 -07:00
NetworkUtils Add missing copyright headers to all cs files 2017-03-02 21:04:03 -08:00
Properties Use rich mock to test InstallCommand (#8402) 2018-01-24 10:16:27 -08:00
TempFileSystem Trailing newlines + standardize tabs -> spaces 2017-03-02 20:35:20 -08:00
BufferedReporter.cs Add verbosity option to install tool command. 2018-01-31 15:19:34 -08:00
DotnetLegacyRuntimeIdentifiers.cs Trailing newlines + standardize tabs -> spaces 2017-03-02 20:35:20 -08:00
DotnetUnderTest.cs Made dotnet-(vs)test.Tests pass on localized setup 2017-06-12 18:32:31 -07:00
EnvironmentInfo.cs Replace alpine with linux-musl builds 2018-04-20 13:23:00 -07:00
LinuxOnlyFactAttribute.cs merge master 2017-03-19 17:09:05 -07:00
MacOsOnlyFactAttribute.cs merge master 2017-03-19 17:09:05 -07:00
Microsoft.DotNet.Tools.Tests.Utilities.csproj Move some projects to netstandard2.0 (#8692) 2018-02-27 13:59:59 -08:00
NonWindowsOnlyFactAttribute.cs add tests for checking filename, working dir and validation of presence of environmental variables 2017-02-16 14:22:02 -08:00
NonWindowsOnlyTheoryAttribute.cs add EOLs in the end of files 2017-02-16 14:22:02 -08:00
NuGetConfig.cs Global tools package obtain (#8035) 2017-11-21 20:10:06 -08:00
NuGetFrameworks.cs Update tool tests to target netcoreapp2.1 2017-08-18 18:07:14 -07:00
PeReaderUtils.cs typo 2017-08-14 21:26:49 -07:00
ProjectUtils.cs Address PR Feedback 2016-02-12 16:57:32 -08:00
RepoDirectoriesProvider.cs Apphost shim (#8893) 2018-04-02 12:37:25 -07:00
RequiresSpecificFrameworkFactAttribute.cs Fix tests on netcoreapp1.1 only platforms 2017-02-22 21:34:21 -06:00
RequiresSpecificFrameworkTheoryAttribute.cs Apply code review feedback 2017-04-27 09:30:40 -07:00
TestBase.cs Use a shorter path for test working directories, get rid of Stage 0 project.json based CLI 2017-08-29 17:59:34 -07:00
UnixOnlyFactAttribute.cs Log Windows product type and installation type, and Linux libc version (#8688) 2018-02-27 18:55:35 -08:00
WindowsOnlyFactAttribute.cs add tests for checking filename, working dir and validation of presence of environmental variables 2017-02-16 14:22:02 -08:00
WindowsOnlyTheoryAttribute.cs add tests for checking filename, working dir and validation of presence of environmental variables 2017-02-16 14:22:02 -08:00