Commit 39eeeec4 authored by BARROS DE ASSIS Lucas's avatar BARROS DE ASSIS Lucas

Fix error counting when testing

parent b10ae63a
......@@ -197,8 +197,9 @@ int testing_zgels(int argc, char **argv)
printf("***************************************************\n");
}
else{
hres++;
printf("***************************************************\n");
printf(" - TESTING ZGEQRF + ZGEQRS ... FAILED !\n");
printf(" - TESTING ZGEQRF + ZGEQRS ... FAILED !\n"); hres++;
printf("***************************************************\n");
}
}
......@@ -229,7 +230,7 @@ int testing_zgels(int argc, char **argv)
}
else {
printf("***************************************************\n");
printf(" - TESTING ZGELQF + ZGELQS ... FAILED !\n");
printf(" - TESTING ZGELQF + ZGELQS ... FAILED !\n"); hres++;
printf("***************************************************\n");
}
}
......@@ -305,6 +306,8 @@ int testing_zgels(int argc, char **argv)
}
}
else {
hres++;
if (M >= N) {
printf("***************************************************\n");
printf(" - TESTING ZGEQRF + ZUNMQR + ZTRSM ... FAILED !\n");
......
......@@ -234,7 +234,7 @@ int testing_zgels_hqr(int argc, char **argv)
}
else {
printf("***************************************************\n");
printf(" - TESTING ZGELQF + ZGELQS ... FAILED !\n");
printf(" - TESTING ZGELQF + ZGELQS ... FAILED !\n"); hres++;
printf("***************************************************\n");
}
}
......@@ -305,6 +305,8 @@ int testing_zgels_hqr(int argc, char **argv)
}
}
else {
hres++;
if (M >= N) {
printf("***************************************************\n");
printf(" - TESTING ZGEQRF + ZUNMQR + ZTRSM ... FAILED !\n");
......
......@@ -197,7 +197,7 @@ int testing_zgels_systolic(int argc, char **argv)
}
else{
printf("***************************************************\n");
printf(" - TESTING ZGEQRF + ZGEQRS ... FAILED !\n");
printf(" - TESTING ZGEQRF + ZGEQRS ... FAILED !\n"); hres++;
printf("***************************************************\n");
}
}
......@@ -230,7 +230,7 @@ int testing_zgels_systolic(int argc, char **argv)
}
else {
printf("***************************************************\n");
printf(" - TESTING ZGELQF + ZGELQS ... FAILED !\n");
printf(" - TESTING ZGELQF + ZGELQS ... FAILED !\n"); hres++;
printf("***************************************************\n");
}
}
......@@ -303,6 +303,8 @@ int testing_zgels_systolic(int argc, char **argv)
}
}
else {
hres++;
if (M >= N) {
printf("***************************************************\n");
printf(" - TESTING ZGEQRF + ZUNMQR + ZTRSM ... FAILED !\n");
......
......@@ -158,7 +158,7 @@ int testing_zgesv_incpiv(int argc, char **argv)
}
else{
printf("***************************************************\n");
printf(" - TESTING INCPIV ZGETRF + ZGETRS ... FAILED !\n");
printf(" - TESTING INCPIV ZGETRF + ZGETRS ... FAILED !\n"); hres++;
printf("***************************************************\n");
}
......@@ -203,7 +203,7 @@ int testing_zgesv_incpiv(int argc, char **argv)
}
else{
printf("**************************************************\n");
printf(" - TESTING INCPIV ZGETRF + ZTRSMPL + ZTRSM ... FAILED !\n");
printf(" - TESTING INCPIV ZGETRF + ZTRSMPL + ZTRSM ... FAILED !\n"); hres++;
printf("**************************************************\n");
}
......
......@@ -145,7 +145,7 @@ int testing_zlange(int argc, char **argv)
}
else {
printf(" - TESTING ZLANTR (%s, %s, %s)... FAILED !\n",
normstr[n], uplostr[u], diagstr[d]);
normstr[n], uplostr[u], diagstr[d]); hres++;
}
printf("***************************************************\n");
}
......@@ -184,7 +184,7 @@ int testing_zlange(int argc, char **argv)
printf(" ---- TESTING ZLANSY (%s, %s)......... PASSED !\n", normstr[n], uplostr[u]);
}
else {
printf(" - TESTING ZLANSY (%s, %s)... FAILED !\n", normstr[n], uplostr[u]);
printf(" - TESTING ZLANSY (%s, %s)... FAILED !\n", normstr[n], uplostr[u]); hres++;
}
printf("***************************************************\n");
}
......@@ -229,7 +229,7 @@ int testing_zlange(int argc, char **argv)
printf(" ---- TESTING ZLANHE (%s, %s)......... PASSED !\n", normstr[n], uplostr[u]);
}
else {
printf(" - TESTING ZLANHE (%s, %s)... FAILED !\n", normstr[n], uplostr[u]);
printf(" - TESTING ZLANHE (%s, %s)... FAILED !\n", normstr[n], uplostr[u]); hres++;
}
printf("***************************************************\n");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment