diff options
author | CNugteren <web@cedricnugteren.nl> | 2015-06-20 14:13:54 +0200 |
---|---|---|
committer | CNugteren <web@cedricnugteren.nl> | 2015-06-20 14:13:54 +0200 |
commit | 0f486d9b7442a314fd45f993137e6794372de1f5 (patch) | |
tree | 23b217432e36476509c289c1a3f07d95c6f887d4 /test/correctness/testxy.cc | |
parent | 3ea3ba2beeab837e8d7c533746bd621daf1c09bd (diff) |
Automatically skips tests with unsupported precision
Diffstat (limited to 'test/correctness/testxy.cc')
-rw-r--r-- | test/correctness/testxy.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/correctness/testxy.cc b/test/correctness/testxy.cc index b2d6c147..5c86182c 100644 --- a/test/correctness/testxy.cc +++ b/test/correctness/testxy.cc @@ -44,6 +44,7 @@ TestXY<T>::TestXY(int argc, char *argv[], const bool silent, // Tests the routine for a wide variety of parameters template <typename T> void TestXY<T>::TestRegular(Arguments<T> &args, const std::string &name) { + if (!PrecisionSupported()) { return; } TestStart("regular behaviour", name); // Iterates over the vector dimension @@ -122,6 +123,7 @@ void TestXY<T>::TestRegular(Arguments<T> &args, const std::string &name) { // does not test for results (if any). template <typename T> void TestXY<T>::TestInvalidBufferSizes(Arguments<T> &args, const std::string &name) { + if (!PrecisionSupported()) { return; } TestStart("invalid buffer sizes", name); // Sets example test parameters |