From 33aaa8c6f91c2f82fecceeeaf44449ae7bf5bf6b Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Thu, 21 Apr 2016 15:41:37 -0700 Subject: [PATCH] Use -noprofile for powershell.exe tests --- test/powershell/Set-PSBreakpoint.Tests.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/powershell/Set-PSBreakpoint.Tests.ps1 b/test/powershell/Set-PSBreakpoint.Tests.ps1 index 58eb188ab9..3623c86493 100644 --- a/test/powershell/Set-PSBreakpoint.Tests.ps1 +++ b/test/powershell/Set-PSBreakpoint.Tests.ps1 @@ -92,7 +92,7 @@ set-psbreakpoint -command foo } It "Should throw Exception when missing mandatory parameter" { - $output = & $ps -noninteractive -command "sbp -line 1" + $output = & $ps -noprofile -noninteractive -command "sbp -line 1" [system.string]::Join(" ", $output) | Should Match "MissingMandatoryParameter,Microsoft.PowerShell.Commands.SetPSBreakpointCommand" } @@ -159,7 +159,7 @@ set-psbreakpoint -command foo } It "Remove implicit script from 'set-psbreakpoint -script'" { - & $ps $scriptFileNameBug + & $ps -noprofile $scriptFileNameBug $breakpoint = Get-PSBreakpoint -Script $scriptFileNameBug $breakpoint | Should BeNullOrEmpty