Skip to content

Commit ef79e43

Browse files
authored
Make mock_mr deallocation noexcept (#2085)
Follow-up to #2077. This change was missed in that PR. Enforcing `noexcept` in CCCL makes the RMM build fail. xref: #2076 Authors: - Bradley Dice (https://github.com/bdice) Approvers: - Lawrence Mitchell (https://github.com/wence-) URL: #2085
1 parent 85e7de1 commit ef79e43

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

cpp/tests/mr/device/arena_mr_tests.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,12 @@ namespace {
4343
class mock_memory_resource {
4444
public:
4545
MOCK_METHOD(void*, allocate, (std::size_t, std::size_t));
46-
MOCK_METHOD(void, deallocate, (void*, std::size_t, std::size_t));
46+
MOCK_METHOD(void, deallocate, (void*, std::size_t, std::size_t), (noexcept));
4747
MOCK_METHOD(void*, allocate_async, (std::size_t, std::size_t, cuda::stream_ref));
48-
MOCK_METHOD(void, deallocate_async, (void*, std::size_t, std::size_t, cuda::stream_ref));
48+
MOCK_METHOD(void,
49+
deallocate_async,
50+
(void*, std::size_t, std::size_t, cuda::stream_ref),
51+
(noexcept));
4952

5053
void* allocate_sync(std::size_t bytes, std::size_t alignment)
5154
{

0 commit comments

Comments
 (0)