[llvm] [BOLT][test] Allow uninstantiated tests when no matching targets are enabled (PR #217604)
Rong Mantle Bao via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 2 06:19:35 PDT 2026
================
@@ -993,3 +993,7 @@ TEST_P(MCPlusBuilderTester, Annotation) {
ASSERT_DEATH(BC->MIB->addEHInfo(Inst, MCPlus::MCLandingPad(LPSymbol, Value)),
"annotation value out of range");
}
+
+#if !defined(X86_AVAILABLE) && !defined(AARCH64_AVAILABLE)
+GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(MCPlusBuilderTester);
+#endif // !defined(X86_AVAILABLE) && !defined(AARCH64_AVAILABLE)
----------------
CSharperMantle wrote:
I beg to differ. I believe it's better to keep the tree tip in good shape. Since the current `main` tip (7d9c823496d8e6dce454a5d3fa72161144561c74 as of this writing) has no RISCV test implemented, I think it's necessary to keep this warning silencer *at present* to make the said scenario work.
Once your support lands on the main branch, it'll be safe to remove these lines (in your PR, at your discretion). Or, as I mentioned in https://github.com/llvm/llvm-project/pull/217604#issuecomment-5509882809, if you plan to support all these four unit tests, please feel free to close this PR and prefer yours once finished.
https://github.com/llvm/llvm-project/pull/217604
More information about the llvm-commits
mailing list