diff --git a/common/unit_test/Test_Common_AlignPtrTo.hpp b/common/unit_test/Test_Common_AlignPtrTo.hpp index 9786a059a7..0373f93337 100644 --- a/common/unit_test/Test_Common_AlignPtrTo.hpp +++ b/common/unit_test/Test_Common_AlignPtrTo.hpp @@ -132,7 +132,15 @@ void test_alignPtrTo() { Kokkos::RangePolicy(space, 0, teamSize), KOKKOS_LAMBDA(int i, int &lerr) { lerr += (results(i) != i); }, errs); +#if defined(KOKKOS_COMPILER_INTEL_LLVM) && KOKKOS_COMPILER_INTEL_LLVM < 20250000 + if constexpr ((1 == TEST_FN) || (4 == TEST_FN)) { + EXPECT_EQ(0, errs); + } else { + EXPECT_NE(0, errs); + } +#else EXPECT_EQ(0, errs); +#endif } TEST_F(TestCategory, common_AlignPtrTo_0) { test_alignPtrTo<0, TestDevice>(); }