From a7d6c07df03841552038a1b898e3636f106dac6d Mon Sep 17 00:00:00 2001 From: Jacob Domagala Date: Tue, 28 Jun 2022 21:58:37 +0200 Subject: [PATCH] #1849: tests: Use GTEST_SKIP for cuda_async test when the driver is not present --- tests/unit/active/test_async_op_cuda.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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();