Remove filter for Exception type during registry inquiry. (#24725)
authorAaron Robinson <arobins@microsoft.com>
Wed, 22 May 2019 22:18:44 +0000 (15:18 -0700)
committerGitHub <noreply@github.com>
Wed, 22 May 2019 22:18:44 +0000 (15:18 -0700)
Update Console output with more details.

tests/src/Common/CoreCLRTestLibrary/Utilities.cs

index 17082cd..bc2d55b 100644 (file)
@@ -192,8 +192,9 @@ namespace TestLibrary
                 string value = "InstallationType";
                 return GetRegistryValueString(key, value);
             }
-            catch (Exception e) when (e is SecurityException || e is InvalidCastException || e is PlatformNotSupportedException /* UAP */)
+            catch (Exception e)
             {
+                Console.WriteLine($"{nameof(GetInstallationTypeForWindows)} exception: {e}");
                 return string.Empty;
             }
         }
@@ -430,11 +431,11 @@ namespace TestLibrary
             if (alcWeakRef.IsAlive)
             {
                 exitCode += 100;
-                Console.WriteLine("Unload failed");
+                Console.WriteLine($"Unload failed - {assemblyPath}");
             }
             else
             {
-                Console.WriteLine("Unload succeeded");
+                Console.WriteLine($"Unload succeeded - {assemblyPath}");
             }
 
             return exitCode;