summaryrefslogtreecommitdiff
path: root/src/coreclr/hosts
diff options
context:
space:
mode:
authorStephen Toub <stoub@microsoft.com>2015-04-02 21:46:26 -0400
committerStephen Toub <stoub@microsoft.com>2015-04-02 21:46:26 -0400
commit1836713388f47867ae5db7aca4aac8507daa3767 (patch)
treeaee3d09e593fa946e8526acbf8ba66022b9385ad /src/coreclr/hosts
parent940483658c1b25f7f56fb3529a138090342afac1 (diff)
downloadcoreclr-1836713388f47867ae5db7aca4aac8507daa3767.tar.gz
coreclr-1836713388f47867ae5db7aca4aac8507daa3767.tar.bz2
coreclr-1836713388f47867ae5db7aca4aac8507daa3767.zip
Enable UseLatestBehaviorWhenTFMNotSpecified for Unix corerun
While root causing some of our test failures on Linux, I found that quirks were enabled, causing tests expecting new behavior to fail when they encountered the old behavior. This commit modifies the Unix corerun to include the "UseLatestBehaviorWhenTFMNotSpecified" AppDomain compat switch (as the Windows version does) so that execution on Unix picks up the latest behavior rather than falling back to the old quirked behavior.
Diffstat (limited to 'src/coreclr/hosts')
-rw-r--r--src/coreclr/hosts/unixcorerun/corerun.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/coreclr/hosts/unixcorerun/corerun.cpp b/src/coreclr/hosts/unixcorerun/corerun.cpp
index 61939ac579..28441a80e1 100644
--- a/src/coreclr/hosts/unixcorerun/corerun.cpp
+++ b/src/coreclr/hosts/unixcorerun/corerun.cpp
@@ -327,7 +327,8 @@ int ExecuteManagedAssembly(
"TRUSTED_PLATFORM_ASSEMBLIES",
"APP_PATHS",
"APP_NI_PATHS",
- "NATIVE_DLL_SEARCH_DIRECTORIES"
+ "NATIVE_DLL_SEARCH_DIRECTORIES",
+ "AppDomainCompatSwitch"
};
const char *propertyValues[] = {
// TRUSTED_PLATFORM_ASSEMBLIES
@@ -337,7 +338,9 @@ int ExecuteManagedAssembly(
// APP_NI_PATHS
appPath.c_str(),
// NATIVE_DLL_SEARCH_DIRECTORIES
- nativeDllSearchDirs.c_str()
+ nativeDllSearchDirs.c_str(),
+ // AppDomainCompatSwitch
+ "UseLatestBehaviorWhenTFMNotSpecified"
};
HRESULT st = executeAssembly(