summaryrefslogtreecommitdiff
path: root/tests/src/JIT/Performance/CodeQuality
diff options
context:
space:
mode:
authorDeepak Shankargouda <deshank@microsoft.com>2016-04-07 15:22:00 -0700
committerDeepak Shankargouda <deshank@microsoft.com>2016-04-07 15:22:00 -0700
commit36a69024d4a4e505f4eaf3a23a0df199c89eda6c (patch)
tree62d85a169a23f7d14bb7a435ca340dd92492335f /tests/src/JIT/Performance/CodeQuality
parent37642c399e431e0c865d0dc2a7341da2be253742 (diff)
downloadcoreclr-36a69024d4a4e505f4eaf3a23a0df199c89eda6c.tar.gz
coreclr-36a69024d4a4e505f4eaf3a23a0df199c89eda6c.tar.bz2
coreclr-36a69024d4a4e505f4eaf3a23a0df199c89eda6c.zip
Fixing failures of CscBench, Serialization and Deserialization perf tests (#4151)
Diffstat (limited to 'tests/src/JIT/Performance/CodeQuality')
-rw-r--r--tests/src/JIT/Performance/CodeQuality/Roslyn/CscBench.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/src/JIT/Performance/CodeQuality/Roslyn/CscBench.cs b/tests/src/JIT/Performance/CodeQuality/Roslyn/CscBench.cs
index e0b9e9987a..92e132a327 100644
--- a/tests/src/JIT/Performance/CodeQuality/Roslyn/CscBench.cs
+++ b/tests/src/JIT/Performance/CodeQuality/Roslyn/CscBench.cs
@@ -32,6 +32,13 @@ public static class CscBench
{
string CoreRoot = System.Environment.GetEnvironmentVariable("CORE_ROOT");
if (CoreRoot == null) { return false; }
+ // Some CoreCLR packages have mscorlib.ni.dll only
+ string nicorlib = Path.Combine(CoreRoot, "mscorlib.ni.dll");
+ if(File.Exists(nicorlib))
+ {
+ MscorlibPath = nicorlib;
+ return true;
+ }
MscorlibPath = Path.Combine(CoreRoot, "mscorlib.dll");
return File.Exists(MscorlibPath);
}