[llvm] [Offload] Ensure all `llvm::Error`s are handled (PR #137339)

Callum Fare via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 25 07:36:28 PDT 2025


================
@@ -28,3 +28,11 @@ TEST_F(olGetKernelTest, InvalidNullKernelPointer) {
   ASSERT_ERROR(OL_ERRC_INVALID_NULL_POINTER,
                olGetKernel(Program, "foo", nullptr));
 }
+
+TEST_F(olGetKernelTest, InvalidKernelName) {
+  GTEST_SKIP()
+      << "Error code returning from plugin interface not yet supported";
----------------
callumfare wrote:

You could rename the test to `DISABLED_InvalidKernelName` to temporarily disable it. Alternatively, you could change the assert to `ASSERT_ANY_ERROR` which would make it pass for now.

https://github.com/llvm/llvm-project/pull/137339


More information about the llvm-commits mailing list