summaryrefslogtreecommitdiff
path: root/offload/unittests/OffloadAPI/platform/olGetPlatform.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'offload/unittests/OffloadAPI/platform/olGetPlatform.cpp')
-rw-r--r--offload/unittests/OffloadAPI/platform/olGetPlatform.cpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/offload/unittests/OffloadAPI/platform/olGetPlatform.cpp b/offload/unittests/OffloadAPI/platform/olGetPlatform.cpp
deleted file mode 100644
index 4a2f9e8ac774..000000000000
--- a/offload/unittests/OffloadAPI/platform/olGetPlatform.cpp
+++ /dev/null
@@ -1,28 +0,0 @@
-//===------- Offload API tests - olGetPlatform -----------------------===//
-//
-// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-// See https://llvm.org/LICENSE.txt for license information.
-// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-//
-//===----------------------------------------------------------------------===//
-
-#include "../common/Fixtures.hpp"
-#include <OffloadAPI.h>
-#include <gtest/gtest.h>
-
-using olGetPlatformTest = offloadTest;
-
-TEST_F(olGetPlatformTest, Success) {
- uint32_t PlatformCount;
- ASSERT_SUCCESS(olGetPlatformCount(&PlatformCount));
- std::vector<ol_platform_handle_t> Platforms(PlatformCount);
- ASSERT_SUCCESS(olGetPlatform(PlatformCount, Platforms.data()));
-}
-
-TEST_F(olGetPlatformTest, InvalidNumEntries) {
- uint32_t PlatformCount;
- ASSERT_SUCCESS(olGetPlatformCount(&PlatformCount));
- std::vector<ol_platform_handle_t> Platforms(PlatformCount);
- ASSERT_ERROR(OL_ERRC_INVALID_SIZE,
- olGetPlatform(PlatformCount + 1, Platforms.data()));
-}