From 1836713388f47867ae5db7aca4aac8507daa3767 Mon Sep 17 00:00:00 2001 From: Stephen Toub Date: Thu, 2 Apr 2015 21:46:26 -0400 Subject: [PATCH] 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. --- src/coreclr/hosts/unixcorerun/corerun.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/coreclr/hosts/unixcorerun/corerun.cpp b/src/coreclr/hosts/unixcorerun/corerun.cpp index 61939ac..28441a8 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( -- 2.7.4