diff --git a/tests/unit/active/test_async_op_cuda.cc b/tests/unit/active/test_async_op_cuda.cc index 3b27b85222..f0f97efcb1 100644 --- a/tests/unit/active/test_async_op_cuda.cc +++ b/tests/unit/active/test_async_op_cuda.cc @@ -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();