[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 17:34:02 PST 2025
https://github.com/cachemeifyoucan created https://github.com/llvm/llvm-project/pull/170063
Some windows bots are getting non-deterministic failures when running
CAS unit tests. Try a workaround to disable on older windows version.
>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] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?=
=?UTF-8?q?l=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();
}
More information about the llvm-commits
mailing list