GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Hide expected error for negative test on windows for script extension… · Thatgfsj-contribs/PowerShell@673a1f0

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/powershell/Host
    • ConsoleHost.Tests.ps1
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/powershell/Host/ConsoleHost.Tests.ps1‎

Copy file name to clipboardExpand all lines: test/powershell/Host/ConsoleHost.Tests.ps1
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ Describe "ConsoleHost unit tests" -tags "Feature" {
174174
It "-File should fail for script without .ps1 extension" -Skip:(!$IsWindows) {
175175
$Filename = 'test.xxx'
176176
Set-Content -Path $testdrive/$Filename -Value "'hello'"
177-
& $powershell -NoProfile -File $testdrive/$Filename > $null
177+
& $powershell -NoProfile -File $testdrive/$Filename 2>&1 $null
178178
$LASTEXITCODE | Should -Be 64
179179
}
180180

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.