Skip to content

Commit

Permalink
Remove correlation blocker for remote->local in some cases, fix warni…
Browse files Browse the repository at this point in the history
…ngs/tests in an unrelated change. (microsoft#2362)
  • Loading branch information
JohnMcPMS authored Jul 22, 2022
1 parent 0c8ec54 commit 630e338
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
12 changes: 6 additions & 6 deletions src/AppInstallerCLITests/AppInstallerCLITests.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,12 @@
<ClCompile Include="Archive.cpp">
<Filter>Source Files\Common</Filter>
</ClCompile>
<ClCompile Include="Filesystem.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="FolderFileWatcher.cpp">
<Filter>Source Files\Common</Filter>
</ClCompile>
<ClCompile Include="Filesystem.cpp">
<Filter>Source Files\Common</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<None Include="PropertySheet.props" />
Expand Down Expand Up @@ -482,7 +482,7 @@
</CopyFileToFolders>
<CopyFileToFolders Include="TestData\TestZip.zip">
<Filter>TestData</Filter>
</CopyFileToFolders>
</CopyFileToFolders>
<CopyFileToFolders Include="TestData\InstallFlowTest_NoApplicableArchitecture.yaml">
<Filter>TestData</Filter>
</CopyFileToFolders>
Expand Down Expand Up @@ -527,7 +527,7 @@
</CopyFileToFolders>
<CopyFileToFolders Include="TestData\InstallFlowTest_Zip_MultipleNonPortableNestedInstallers.yaml">
<Filter>TestData</Filter>
</CopyFileToFolders>
</CopyFileToFolders>
<CopyFileToFolders Include="TestData\InstallerArgTest_Msi_WithSwitches.yaml">
<Filter>TestData</Filter>
</CopyFileToFolders>
Expand Down Expand Up @@ -569,7 +569,7 @@
</CopyFileToFolders>
<CopyFileToFolders Include="TestData\UpdateFlowTest_ZipWithExe.yaml">
<Filter>TestData</Filter>
</CopyFileToFolders>
</CopyFileToFolders>
<CopyFileToFolders Include="TestData\ImportFile-Good.json">
<Filter>TestData</Filter>
</CopyFileToFolders>
Expand Down
4 changes: 4 additions & 0 deletions src/AppInstallerCLITests/FolderFileWatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,12 @@ TEST_CASE("FolderFileWatcher_CreateNewFilesAndDelete", "[FolderFileWatcher]")
TempFile tempFile3(dirToWatch.GetPath(), "file3_", ".txt");
tempFile3Path = tempFile3.GetPath();
WriteText(tempFile3Path);
std::filesystem::remove(tempFile3Path);

TempFile tempFile4(newTestDir, "file4_", ".txt");
tempFile4Path = tempFile4.GetPath();
WriteText(tempFile4Path);
std::filesystem::remove(tempFile4Path);
}

std::this_thread::sleep_for(100ms);
Expand Down Expand Up @@ -358,10 +360,12 @@ TEST_CASE("FolderFileWatcher_Extension_CreateNewFilesAndDelete", "[FolderFileWat
TempFile tempFile3(dirToWatch.GetPath(), "file3_", ".txt");
tempFile3Path = tempFile3.GetPath();
WriteText(tempFile3Path);
std::filesystem::remove(tempFile3Path);

TempFile tempFile4(newTestDir, "file4_", ".txt");
tempFile4Path = tempFile4.GetPath();
WriteText(tempFile4Path);
std::filesystem::remove(tempFile4Path);
}

std::this_thread::sleep_for(100ms);
Expand Down
2 changes: 1 addition & 1 deletion src/AppInstallerCommonCore/pch.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
#include <vector>

#pragma warning( push )
#pragma warning ( disable : 6001 6285 6287 6340 6388 )
#pragma warning ( disable : 6001 6285 6287 6340 6387 6388 28196 )
#include <wil/resource.h>
#include <wil/result.h>
#include <wil/result_macros.h>
Expand Down
6 changes: 0 additions & 6 deletions src/AppInstallerRepositoryCore/CompositeSource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1054,12 +1054,6 @@ namespace AppInstaller::Repository
}
}

// Do not attempt to correlate local packages against this source.
if (m_searchBehavior == CompositeSearchBehavior::Installed && !source.GetDetails().SupportInstalledSearchCorrelation)
{
continue;
}

SearchResult availableResult = result.SearchAndHandleFailures(source, request);

for (auto&& match : availableResult.Matches)
Expand Down

0 comments on commit 630e338

Please sign in to comment.