summaryrefslogtreecommitdiff
path: root/test/correctness/routines/level2/xtpsv.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/correctness/routines/level2/xtpsv.cc')
-rw-r--r--test/correctness/routines/level2/xtpsv.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/correctness/routines/level2/xtpsv.cc b/test/correctness/routines/level2/xtpsv.cc
index 97d27271..f0ff939e 100644
--- a/test/correctness/routines/level2/xtpsv.cc
+++ b/test/correctness/routines/level2/xtpsv.cc
@@ -18,11 +18,12 @@ using double2 = clblast::double2;
// Main function (not within the clblast namespace)
int main(int argc, char *argv[]) {
- clblast::RunTests<clblast::TestXtpsv<float>, float, float>(argc, argv, false, "STPSV");
- clblast::RunTests<clblast::TestXtpsv<double>, double, double>(argc, argv, true, "DTPSV");
- clblast::RunTests<clblast::TestXtpsv<float2>, float2, float2>(argc, argv, true, "CTPSV");
- clblast::RunTests<clblast::TestXtpsv<double2>, double2, double2>(argc, argv, true, "ZTPSV");
- return 0;
+ auto errors = size_t{0};
+ errors += clblast::RunTests<clblast::TestXtpsv<float>, float, float>(argc, argv, false, "STPSV");
+ errors += clblast::RunTests<clblast::TestXtpsv<double>, double, double>(argc, argv, true, "DTPSV");
+ errors += clblast::RunTests<clblast::TestXtpsv<float2>, float2, float2>(argc, argv, true, "CTPSV");
+ errors += clblast::RunTests<clblast::TestXtpsv<double2>, double2, double2>(argc, argv, true, "ZTPSV");
+ if (errors > 0) { return 1; } else { return 0; }
}
// =================================================================================================