diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2016-06-02 16:24:22 +0200 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2016-06-02 16:24:22 +0200 |
commit | e561e3fbd5d8fc598af120c17162b95bc8b8743b (patch) | |
tree | 400bec346d9c2982330826c6525cfab8cf9415f4 /test/correctness/routines/level1/xrotg.cc | |
parent | 137d1d870890f4f9f8c43d06aef9d404a5b4a77e (diff) |
Added return value to the test binaries (0: success, 1: failure), allowing it to work under CTest properly
Diffstat (limited to 'test/correctness/routines/level1/xrotg.cc')
-rw-r--r-- | test/correctness/routines/level1/xrotg.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/correctness/routines/level1/xrotg.cc b/test/correctness/routines/level1/xrotg.cc index dd068992..c8480673 100644 --- a/test/correctness/routines/level1/xrotg.cc +++ b/test/correctness/routines/level1/xrotg.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::TestXrotg<float>, float, float>(argc, argv, false, "SROTG"); - clblast::RunTests<clblast::TestXrotg<double>, double, double>(argc, argv, true, "DROTG"); - return 0; + auto errors = size_t{0}; + errors += clblast::RunTests<clblast::TestXrotg<float>, float, float>(argc, argv, false, "SROTG"); + errors += clblast::RunTests<clblast::TestXrotg<double>, double, double>(argc, argv, true, "DROTG"); + if (errors > 0) { return 1; } else { return 0; } } // ================================================================================================= |