summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPierre Joye <pierre.php@gmail.com>2021-08-26 22:45:15 +0700
committerPierre Joye <pierre.php@gmail.com>2021-08-26 22:45:15 +0700
commitb88bedabcab6499187f924cb83aad4278b8640c7 (patch)
treef5826ed508fd398ea46fdf3b99a54ee405790a88 /tests
parent13d3b67822f9e8b2f6cfc96933abeef054d37085 (diff)
downloadlibgd-b88bedabcab6499187f924cb83aad4278b8640c7.tar.gz
return 0 on successbug/402
Diffstat (limited to 'tests')
-rw-r--r--tests/gdmatrix/bug00402.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/gdmatrix/bug00402.c b/tests/gdmatrix/bug00402.c
index 15529b6..2884fc1 100644
--- a/tests/gdmatrix/bug00402.c
+++ b/tests/gdmatrix/bug00402.c
@@ -17,14 +17,14 @@ int main()
};
int res = gdAffineInvert(matrix_inv, matrix);
-
+ if (!res) return -1;
for (int i=0; i < 6; i++) {
double rounded_res = round(matrix_inv[i] * 10);
double rounded_exp = round(matrix_inv_exp[i] * 10);
if (rounded_res != rounded_exp) {
printf("%i failed %f exp %f", i, matrix_inv[i], matrix_inv_exp[i]);
- return -1;
+ return -i;
}
}
- return res;
+ return 0;
}