summaryrefslogtreecommitdiff
path: root/test/correctness/routines/level2/xhpr2.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/correctness/routines/level2/xhpr2.cc')
-rw-r--r--test/correctness/routines/level2/xhpr2.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/correctness/routines/level2/xhpr2.cc b/test/correctness/routines/level2/xhpr2.cc
index 0fed97e1..7c62c255 100644
--- a/test/correctness/routines/level2/xhpr2.cc
+++ b/test/correctness/routines/level2/xhpr2.cc
@@ -18,9 +18,10 @@ using double2 = clblast::double2;
// Main function (not within the clblast namespace)
int main(int argc, char *argv[]) {
- clblast::RunTests<clblast::TestXhpr2<float2>, float2, float2>(argc, argv, false, "CHPR2");
- clblast::RunTests<clblast::TestXhpr2<double2>, double2, double2>(argc, argv, true, "ZHPR2");
- return 0;
+ auto errors = size_t{0};
+ errors += clblast::RunTests<clblast::TestXhpr2<float2>, float2, float2>(argc, argv, false, "CHPR2");
+ errors += clblast::RunTests<clblast::TestXhpr2<double2>, double2, double2>(argc, argv, true, "ZHPR2");
+ if (errors > 0) { return 1; } else { return 0; }
}
// =================================================================================================