We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 414d561 commit 7c64c0fCopy full SHA for 7c64c0f
test/powershell/Modules/Microsoft.PowerShell.Utility/string.tests.ps1
@@ -14,7 +14,8 @@
14
$pathWithoutWildcard = $TestDrive
15
$pathWithWildcard = Join-Path $TestDrive '*'
16
17
- $tempFile = New-TemporaryFile
+ # Here Get-ChildItem adds 'PSDrive' property
18
+ $tempFile = New-TemporaryFile | Get-Item
19
"abc" | Out-File -LiteralPath $tempFile.fullname
20
"bcd" | Out-File -LiteralPath $tempFile.fullname -Append
21
"cde" | Out-File -LiteralPath $tempFile.fullname -Append
@@ -49,7 +50,7 @@
49
50
(select-string -LiteralPath $fileNameWithDots "b").count | Should Be 2
51
}
52
- It "Network path" -skip:($IsCoreCLR) {
53
+ It "Network path" -skip:(!$IsWindows) {
54
(select-string -LiteralPath $fileNameAsNetworkPath "b").count | Should Be 2
55
56
0 commit comments