gputests: missing device is a test failure

This commit is contained in:
Arne Morten Kvarving 2023-05-09 11:58:40 +02:00
parent e28196f8af
commit 60079dc065
4 changed files with 4 additions and 4 deletions

View File

@ -198,6 +198,6 @@ BOOST_AUTO_TEST_CASE(TestCusparseSolver)
// Test with 3x3 block solvers.
test3(prm);
} catch(const DeviceInitException& ) {
BOOST_WARN_MESSAGE(true, "Problem with initializing a device. skipping test");
BOOST_ERROR("Problem with initializing a device.");
}
}

View File

@ -195,6 +195,6 @@ BOOST_AUTO_TEST_CASE(TestOpenclSolver)
// Test with 3x3 block solvers.
test3(prm);
} catch(const PlatformInitException& ) {
BOOST_WARN_MESSAGE(true, "Problem with initializing Platform. skipping test");
BOOST_ERROR("Problem with initializing Platform.");
}
}

View File

@ -156,6 +156,6 @@ BOOST_AUTO_TEST_CASE(TestRocalutionSolver)
// test rocalution with 3x3 blocks
test3(prm);
} else {
BOOST_WARN_MESSAGE(true, "Problem with initializing a device. skipping test");
BOOST_ERROR("Problem with initializing a device.");
}
}

View File

@ -212,6 +212,6 @@ BOOST_AUTO_TEST_CASE(TestRocsparseSolver)
// Test with 3x3 block solvers.
test3(prm);
} catch(const HIPInitException& ) {
BOOST_WARN_MESSAGE(true, "Problem with initializing HIP, skipping test");
BOOST_ERROR("Problem with initializing HIP.");
}
}