PowerShell/test/powershell/Language
Dongbo Wang 795de73d31 Fix 'using module' when module has non-terminating errors handled with 'SilentlyContinue' (#4711)
`Compiler.LoadModule` assumes that when `ps.HadErrors == true` the error stream is not empty. However, when `SilentlyContinue` is specified as the error action, the non-terminating error is not kept in `ErrorOutputPipe` of the cmdlet and thus does not appear in `ps.Streams.Error`. So when `ps.HadErrors == true` while `ps.Streams.Error` is empty, it suggests it's OK to ignore the errors because they are explicitly suppressed with `SilentlyContinue` error action.

So in my opinion, the expected behavior of `"using module .\mod.psm1"` in this case should be successful as if `ps.HaddErrors` is false.
2017-09-01 08:54:08 -07:00
..
Classes Fix 'using module' when module has non-terminating errors handled with 'SilentlyContinue' (#4711) 2017-09-01 08:54:08 -07:00
Interop/DotNet Fix GetType() bad pattern and related issues in tests (#3134) 2017-02-15 16:40:51 -08:00
Operators add test coverage for -notcontains, -is, -isnot operators (#4179) 2017-07-11 12:27:04 -07:00
Parser PSScriptAnalyzer fixes by category (#4261) 2017-07-21 21:03:49 -07:00
Scripting Clean up ShellExecute code to use the .NET Core implementation (#4523) 2017-08-10 13:32:57 -07:00
CompletionTestSupport.psm1 Remove trailing whitespace (#3001) 2017-01-16 13:31:14 -08:00