Fix prefix of mock hostpolicy on Unix (#23692)
authorJeremy Koritzinsky <jkoritzinsky@gmail.com>
Thu, 4 Apr 2019 16:33:12 +0000 (09:33 -0700)
committerGitHub <noreply@github.com>
Thu, 4 Apr 2019 16:33:12 +0000 (09:33 -0700)
Fixes #23682

tests/src/CLRTest.MockHosting.targets

index a139caa..7af2584 100644 (file)
@@ -14,7 +14,7 @@ This file contains the logic for correctly hooking up a mock hostpolicy to a tes
   <ItemGroup>
     <ProjectReference Include="$(MSBuildThisFileDirectory)/Common/hostpolicymock/CMakeLists.txt" />
     <!-- %28 decodes to '('. It's needed to keep MSBuild from trying to parse $(pwd) as an MSBuild property -->
-    <CLRTestBashEnvironmentVariable Include="export MOCK_HOSTPOLICY=$%28pwd)/hostpolicy$(HostPolicyFileExtension)" />
+    <CLRTestBashEnvironmentVariable Include="export MOCK_HOSTPOLICY=$%28pwd)/libhostpolicy$(HostPolicyFileExtension)" />
     <!-- %25 decodes to '%'. It's needed to keep %cd itself from being decoded since we want '%cd%' directly in the script. -->
     <CLRTestBatchEnvironmentVariable Include="set MOCK_HOSTPOLICY=%25cd%\hostpolicy.dll" />
   </ItemGroup>