summaryrefslogtreecommitdiff
path: root/test/correctness/testabc.cc
diff options
context:
space:
mode:
authorCNugteren <web@cedricnugteren.nl>2015-06-20 14:13:54 +0200
committerCNugteren <web@cedricnugteren.nl>2015-06-20 14:13:54 +0200
commit0f486d9b7442a314fd45f993137e6794372de1f5 (patch)
tree23b217432e36476509c289c1a3f07d95c6f887d4 /test/correctness/testabc.cc
parent3ea3ba2beeab837e8d7c533746bd621daf1c09bd (diff)
Automatically skips tests with unsupported precision
Diffstat (limited to 'test/correctness/testabc.cc')
-rw-r--r--test/correctness/testabc.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/correctness/testabc.cc b/test/correctness/testabc.cc
index 107ffb70..eed17560 100644
--- a/test/correctness/testabc.cc
+++ b/test/correctness/testabc.cc
@@ -46,6 +46,7 @@ TestABC<T>::TestABC(int argc, char *argv[], const bool silent,
// Tests the routine for a wide variety of parameters
template <typename T>
void TestABC<T>::TestRegular(Arguments<T> &args, const std::string &name) {
+ if (!PrecisionSupported()) { return; }
TestStart("regular behaviour", name);
// Computes whether or not the matrices are transposed. Note that we assume a default of
@@ -161,6 +162,7 @@ void TestABC<T>::TestRegular(Arguments<T> &args, const std::string &name) {
// does not test for results (if any).
template <typename T>
void TestABC<T>::TestInvalidBufferSizes(Arguments<T> &args, const std::string &name) {
+ if (!PrecisionSupported()) { return; }
TestStart("invalid buffer sizes", name);
// Sets example test parameters