summaryrefslogtreecommitdiff
path: root/test/correctness/routines/level2/xsbmv.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/correctness/routines/level2/xsbmv.cc')
-rw-r--r--test/correctness/routines/level2/xsbmv.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/correctness/routines/level2/xsbmv.cc b/test/correctness/routines/level2/xsbmv.cc
index c2effcc2..a0af3c25 100644
--- a/test/correctness/routines/level2/xsbmv.cc
+++ b/test/correctness/routines/level2/xsbmv.cc
@@ -18,10 +18,11 @@ using double2 = clblast::double2;
// Main function (not within the clblast namespace)
int main(int argc, char *argv[]) {
- clblast::RunTests<clblast::TestXsbmv<float>, float, float>(argc, argv, false, "SSBMV");
- clblast::RunTests<clblast::TestXsbmv<double>, double, double>(argc, argv, true, "DSBMV");
- clblast::RunTests<clblast::TestXsbmv<half>, half, half>(argc, argv, true, "HSBMV");
- return 0;
+ auto errors = size_t{0};
+ errors += clblast::RunTests<clblast::TestXsbmv<float>, float, float>(argc, argv, false, "SSBMV");
+ errors += clblast::RunTests<clblast::TestXsbmv<double>, double, double>(argc, argv, true, "DSBMV");
+ errors += clblast::RunTests<clblast::TestXsbmv<half>, half, half>(argc, argv, true, "HSBMV");
+ if (errors > 0) { return 1; } else { return 0; }
}
// =================================================================================================