Skip to content

Commit

Permalink
#1849: tests: Use GTEST_SKIP for cuda_async test when the driver is n…
Browse files Browse the repository at this point in the history
…ot present
  • Loading branch information
JacobDomagala committed Sep 9, 2022
1 parent 87b5b6f commit 627b600
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/unit/active/test_async_op_cuda.cc
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,8 @@ TEST_F(TestAsyncOp, test_async_op_cuda) {
if (
(cudaDriverGetVersion(&driverVer) == cudaErrorInvalidValue) or
(driverVer == 0)) {
vtWarn(
"Trying to run test_async_op_cuda but CUDA driver is not present!\n"
);

return;
GTEST_SKIP()
<< "Trying to run test_async_op_cuda but CUDA driver is not present!\n";
}

auto const this_node = theContext()->getNode();
Expand Down

0 comments on commit 627b600

Please sign in to comment.