diff options
Diffstat (limited to 'test/correctness/routines/level2/xhpr.cc')
-rw-r--r-- | test/correctness/routines/level2/xhpr.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/correctness/routines/level2/xhpr.cc b/test/correctness/routines/level2/xhpr.cc index a720aaef..c13802ea 100644 --- a/test/correctness/routines/level2/xhpr.cc +++ b/test/correctness/routines/level2/xhpr.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::TestXhpr<float2,float>, float2, float>(argc, argv, false, "CHPR"); - clblast::RunTests<clblast::TestXhpr<double2,double>, double2, double>(argc, argv, true, "ZHPR"); - return 0; + auto errors = size_t{0}; + errors += clblast::RunTests<clblast::TestXhpr<float2,float>, float2, float>(argc, argv, false, "CHPR"); + errors += clblast::RunTests<clblast::TestXhpr<double2,double>, double2, double>(argc, argv, true, "ZHPR"); + if (errors > 0) { return 1; } else { return 0; } } // ================================================================================================= |