diff options
author | Tanner Gooding <tagoo@outlook.com> | 2018-03-06 08:48:42 -0800 |
---|---|---|
committer | Tanner Gooding <tagoo@outlook.com> | 2018-03-08 12:08:34 -0800 |
commit | 38cbfe38d9055da8e1fd3016a0fb7dd5bb082198 (patch) | |
tree | ce38469d0f9467d6617937df7576b731a0f1e248 /tests | |
parent | f1c9dac3e2db2397e01cd2da3e8aaa4f81a80013 (diff) | |
download | coreclr-38cbfe38d9055da8e1fd3016a0fb7dd5bb082198.tar.gz coreclr-38cbfe38d9055da8e1fd3016a0fb7dd5bb082198.tar.bz2 coreclr-38cbfe38d9055da8e1fd3016a0fb7dd5bb082198.zip |
Updating the x86 hardware-intrinsics tests to properly accept filter arguments
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/JIT/HardwareIntrinsics/X86/Shared/Program.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/src/JIT/HardwareIntrinsics/X86/Shared/Program.cs b/tests/src/JIT/HardwareIntrinsics/X86/Shared/Program.cs index abc8e3194c..a5162815f2 100644 --- a/tests/src/JIT/HardwareIntrinsics/X86/Shared/Program.cs +++ b/tests/src/JIT/HardwareIntrinsics/X86/Shared/Program.cs @@ -3,6 +3,7 @@ // See the LICENSE file in the project root for more information. using System; +using System.Linq; using System.Collections.Generic; namespace JIT.HardwareIntrinsics.X86 @@ -42,14 +43,14 @@ namespace JIT.HardwareIntrinsics.X86 for (var i = 0; i < args.Length; i++) { - var testName = args[i].ToLowerInvariant(); + var testName = args[i]; - if (testName == "all") + if (testName.Equals("all", StringComparison.OrdinalIgnoreCase)) { break; } - if (!TestList.ContainsKey(testName)) + if (!TestList.Keys.Contains(testName, StringComparer.OrdinalIgnoreCase)) { PrintUsage(); } |