Skip to content

Commit b9b1e91

Browse files
JackAKirkldrumm
authored andcommitted
Remove out of date test cases.
Signed-off-by: JackAKirk <jack.kirk@codeplay.com>
1 parent 8e94ada commit b9b1e91

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

test/adapters/hip/test_context.cpp

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,6 @@ TEST_P(urHipContextTest, ActiveContexts) {
2424

2525
// ensure that the queue has the correct context
2626
ASSERT_EQ(context, queue->getContext());
27-
28-
// check that the current context is the active HIP context
29-
hipCtx_t hipContext = nullptr;
30-
ASSERT_SUCCESS_HIP(hipCtxGetCurrent(&hipContext));
31-
ASSERT_NE(hipContext, nullptr);
32-
if (context->getDevices().size() == 1) {
33-
ASSERT_EQ(hipContext, context->getDevices()[0]->getNativeContext());
34-
}
3527
}
3628

3729
TEST_P(urHipContextTest, ActiveContextsThreads) {
@@ -50,7 +42,6 @@ TEST_P(urHipContextTest, ActiveContextsThreads) {
5042
bool thread_done = false;
5143

5244
auto test_thread = std::thread([&] {
53-
hipCtx_t current = nullptr;
5445
{
5546
uur::raii::Queue queue = nullptr;
5647
ASSERT_SUCCESS(
@@ -59,13 +50,6 @@ TEST_P(urHipContextTest, ActiveContextsThreads) {
5950

6051
// ensure queue has the correct context
6152
ASSERT_EQ(queue->getContext(), context1);
62-
63-
// check that the first context is now the active HIP context
64-
ASSERT_SUCCESS_HIP(hipCtxGetCurrent(&current));
65-
if (context1->getDevices().size() == 1) {
66-
ASSERT_EQ(current,
67-
context1->getDevices()[0]->getNativeContext());
68-
}
6953
}
7054

7155
// mark the first set of processing as done and notify the main thread
@@ -90,13 +74,6 @@ TEST_P(urHipContextTest, ActiveContextsThreads) {
9074

9175
// ensure the queue has the correct context
9276
ASSERT_EQ(queue->getContext(), context2);
93-
94-
// check that the second context is now the active HIP context
95-
ASSERT_SUCCESS_HIP(hipCtxGetCurrent(&current));
96-
if (context2->getDevices().size() == 1) {
97-
ASSERT_EQ(current,
98-
context2->getDevices()[0]->getNativeContext());
99-
}
10077
}
10178
});
10279

0 commit comments

Comments
 (0)