Support for MSYS2 builds (#3621)

This commit is contained in:
tdcosta100
2025-07-20 08:07:50 -03:00
committed by GitHub
parent d3ea080e06
commit b12008aa7b
20 changed files with 636 additions and 69 deletions

View File

@@ -179,8 +179,8 @@ TEST(LocalFileSource, URLLimit) {
std::unique_ptr<AsyncRequest> req = fs.request({Resource::Unknown, toAbsoluteURL(url)}, [&](Response res) {
req.reset();
ASSERT_NE(nullptr, res.error);
#if defined(_MSC_VER) && !defined(__clang__)
// Microsoft Visual Studio defines PATH_MAX as 260, less than the
#if defined(WIN32)
// MSYS2 and Microsoft Visual Studio defines PATH_MAX as 260, less than the
// limit to trigger an error with reason "Other"
EXPECT_EQ(Response::Error::Reason::NotFound, res.error->reason);
#else