-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for not implemented devdax provider
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Copyright (C) 2024 Intel Corporation | ||
// Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
|
||
#include "base.hpp" | ||
|
||
#include <umf/providers/provider_devdax_memory.h> | ||
|
||
using umf_test::test; | ||
|
||
TEST_F(test, devdax_provider_not_implemented) { | ||
umf_devdax_memory_provider_params_handle_t params = nullptr; | ||
umf_result_t umf_result = | ||
umfDevDaxMemoryProviderParamsCreate(¶ms, "path", 4096); | ||
EXPECT_EQ(umf_result, UMF_RESULT_ERROR_NOT_SUPPORTED); | ||
EXPECT_EQ(params, nullptr); | ||
|
||
umf_result = umfDevDaxMemoryProviderParamsDestroy(nullptr); | ||
EXPECT_EQ(umf_result, UMF_RESULT_ERROR_NOT_SUPPORTED); | ||
|
||
umf_result = | ||
umfDevDaxMemoryProviderParamsSetDeviceDax(nullptr, "path", 4096); | ||
EXPECT_EQ(umf_result, UMF_RESULT_ERROR_NOT_SUPPORTED); | ||
|
||
umf_result = umfDevDaxMemoryProviderParamsSetProtection(nullptr, 0); | ||
EXPECT_EQ(umf_result, UMF_RESULT_ERROR_NOT_SUPPORTED); | ||
|
||
umf_memory_provider_ops_t *ops = umfDevDaxMemoryProviderOps(); | ||
EXPECT_EQ(ops, nullptr); | ||
} |