[all-commits] [llvm/llvm-project] e2c3b4: [libsycl][Unit] Tighten mock liboffload API argume...
Sergey Semenov via All-commits
all-commits at lists.llvm.org
Mon Aug 3 08:05:16 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e2c3b4e03a763d4a83cbc1176c075f082c3e966e
https://github.com/llvm/llvm-project/commit/e2c3b4e03a763d4a83cbc1176c075f082c3e966e
Author: Sergey Semenov <sergey.semenov at intel.com>
Date: 2026-08-03 (Mon, 03 Aug 2026)
Changed paths:
M libsycl/unittests/mock/helpers.cpp
Log Message:
-----------
[libsycl][Unit] Tighten mock liboffload API argument checks (#211035)
Prior to this patch, unit test default actions for mock liboffload
returned errors when receiving invalid arguments. There are only a few
valid scenarios where the runtime should expect and handle error codes
returned by liboffload (for example, checking whether a pointer is USM
or not). In most cases, the calls should not be made with invalid
arguments by libsycl at all, and especially not with the type of invalid
arguments that we can check for in default actions, like nullptrs or
invalid size values.
This patch changes such default action checks to trigger test failures
directly instead of mocking error codes.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list