Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Chen <jochen@microsoft.com>2017-01-05 18:55:09 +0300
committerGitHub <noreply@github.com>2017-01-05 18:55:09 +0300
commit158800db40864779aadbe2b2e6916dbc495060b6 (patch)
tree50eb525f150b3805876f216c7133e3fc12291852 /src/System.Runtime.Extensions/tests
parent93d99e8c797e311059f822036e7598fe58d71e3e (diff)
parent21296d01c360e5febf4f9d7c501158cf740c604c (diff)
Merge pull request #14876 from JohnChen0/apiset
Replace API Set with Win32 DLL in tests
Diffstat (limited to 'src/System.Runtime.Extensions/tests')
-rw-r--r--src/System.Runtime.Extensions/tests/System/Environment.GetEnvironmentVariable.cs2
-rw-r--r--src/System.Runtime.Extensions/tests/System/Environment.ProcessorCount.cs2
-rw-r--r--src/System.Runtime.Extensions/tests/System/EnvironmentTests.cs2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/System.Runtime.Extensions/tests/System/Environment.GetEnvironmentVariable.cs b/src/System.Runtime.Extensions/tests/System/Environment.GetEnvironmentVariable.cs
index c0c45b7688..66488f3e42 100644
--- a/src/System.Runtime.Extensions/tests/System/Environment.GetEnvironmentVariable.cs
+++ b/src/System.Runtime.Extensions/tests/System/Environment.GetEnvironmentVariable.cs
@@ -224,7 +224,7 @@ namespace System.Tests
Assert.True(success);
}
- [DllImport("api-ms-win-core-processenvironment-l1-1-0.dll", CharSet = CharSet.Unicode, SetLastError = true)]
+ [DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
private static extern bool SetEnvironmentVariable(string lpName, string lpValue);
[DllImport("libc")]
diff --git a/src/System.Runtime.Extensions/tests/System/Environment.ProcessorCount.cs b/src/System.Runtime.Extensions/tests/System/Environment.ProcessorCount.cs
index 7fcfb0b255..8e7f0484b0 100644
--- a/src/System.Runtime.Extensions/tests/System/Environment.ProcessorCount.cs
+++ b/src/System.Runtime.Extensions/tests/System/Environment.ProcessorCount.cs
@@ -48,7 +48,7 @@ namespace System.Tests
[DllImport("libc")]
private static extern long sysconf(int name);
- [DllImport("api-ms-win-core-sysinfo-l1-1-0.dll", SetLastError = true)]
+ [DllImport("kernel32.dll", SetLastError = true)]
internal static extern void GetSystemInfo(ref SYSTEM_INFO lpSystemInfo);
[StructLayout(LayoutKind.Sequential)]
diff --git a/src/System.Runtime.Extensions/tests/System/EnvironmentTests.cs b/src/System.Runtime.Extensions/tests/System/EnvironmentTests.cs
index 51561a2ad3..4825078092 100644
--- a/src/System.Runtime.Extensions/tests/System/EnvironmentTests.cs
+++ b/src/System.Runtime.Extensions/tests/System/EnvironmentTests.cs
@@ -345,7 +345,7 @@ namespace System.Tests
}
}
- [DllImport("api-ms-win-core-file-l1-1-0.dll", SetLastError = true)]
+ [DllImport("kernel32.dll", SetLastError = true)]
internal static extern int GetLogicalDrives();
[DllImport("shell32.dll", SetLastError = false, BestFitMapping = false, ExactSpelling = true)]