From c3d12732f300ee64ddfaf22368fb4be112d64f8b Mon Sep 17 00:00:00 2001 From: Aditya Patwardhan Date: Thu, 24 Aug 2023 13:12:05 -0700 Subject: [PATCH] Skip the test on x86 as InstallDate is not visible on Wow64 --- .../Get-ComputerInfo.Tests.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/Get-ComputerInfo.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/Get-ComputerInfo.Tests.ps1 index 824de391020..8d68a2aaafc 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/Get-ComputerInfo.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/Get-ComputerInfo.Tests.ps1 @@ -232,9 +232,9 @@ function Get-PropertyNamesForComputerInfoTest "WindowsVersion", "WindowsUBR") - if ([System.Management.Automation.Platform]::IsIoT) + if ([System.Management.Automation.Platform]::IsIoT -or (Test-IsWinWow64)) { - Write-Verbose -Verbose -Message "WindowsInstallDateFromRegistry is not supported on IoT." + Write-Verbose -Verbose -Message "WindowsInstallDateFromRegistry is not supported on current platform." } else {