[llvm] [CAS] Temporarily skip tests on old windows version (PR #170063)
Steven Wu via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 30 20:18:17 PST 2025
https://github.com/cachemeifyoucan updated https://github.com/llvm/llvm-project/pull/170063
>From c4403e62e8b960ad925814fdc84e30b71b9707ca Mon Sep 17 00:00:00 2001
From: Steven Wu <stevenwu at apple.com>
Date: Mon, 1 Dec 2025 09:33:45 +0800
Subject: [PATCH 1/2] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?=
=?UTF-8?q?itial=20version?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Created using spr 1.3.7
---
llvm/unittests/CAS/CASTestConfig.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/llvm/unittests/CAS/CASTestConfig.h b/llvm/unittests/CAS/CASTestConfig.h
index b1c0e59ff2b92..c2d8086216c59 100644
--- a/llvm/unittests/CAS/CASTestConfig.h
+++ b/llvm/unittests/CAS/CASTestConfig.h
@@ -15,6 +15,10 @@
#include "gtest/gtest.h"
#include <memory>
+#ifdef _WIN32
+#include "llvm/Support/Windows/WindowsSupport.h"
+#endif
+
namespace llvm::unittest::cas {
class MockEnv {
void anchor();
@@ -68,6 +72,10 @@ class CASTest
}
void SetUp() override {
+#ifdef _WIN32
+ if (GetWindowsOSVersion() < llvm::VersionTuple(10, 0, 0, 17763))
+ GTEST_SKIP() << "CAS tests skipped on older windows version";
+#endif
NextCASIndex = 0;
setMaxOnDiskCASMappingSize();
}
>From 602639c56fcdbc612e0853a6dff739543909f69d Mon Sep 17 00:00:00 2001
From: Steven Wu <stevenwu at apple.com>
Date: Mon, 1 Dec 2025 12:17:56 +0800
Subject: [PATCH 2/2] Fix missing header on windows
Created using spr 1.3.7
---
llvm/unittests/CAS/CASTestConfig.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/llvm/unittests/CAS/CASTestConfig.h b/llvm/unittests/CAS/CASTestConfig.h
index c2d8086216c59..ffabeb69b2619 100644
--- a/llvm/unittests/CAS/CASTestConfig.h
+++ b/llvm/unittests/CAS/CASTestConfig.h
@@ -16,6 +16,7 @@
#include <memory>
#ifdef _WIN32
+#include "llvm/Support/VersionTuple.h"
#include "llvm/Support/Windows/WindowsSupport.h"
#endif
More information about the llvm-commits
mailing list