summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2020-06-09 15:21:28 +0200
committerStefan Schmidt <s.schmidt@samsung.com>2020-06-10 17:39:02 +0200
commit09d89a059c723b5717798f100ddfb8708792c93a (patch)
tree97e4a35499e24e0c7d2d188d4045955349245600
parente9e8368823fb382921fde457d85bba22ae305b9b (diff)
tests: eina: make sure we always check on eina_matrixsparse_data_idx_get return
It has been checked in all other places, but has been forgotten in these two. CID: 1401081 Reviewed-by: Christopher Michael <devilhorns@comcast.net> Differential Revision: https://phab.enlightenment.org/D11960
-rw-r--r--src/tests/eina/eina_test_matrixsparse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/eina/eina_test_matrixsparse.c b/src/tests/eina/eina_test_matrixsparse.c
index 5c8b548508..d2ad4c602f 100644
--- a/src/tests/eina/eina_test_matrixsparse.c
+++ b/src/tests/eina/eina_test_matrixsparse.c
@@ -145,9 +145,11 @@ EFL_START_TEST(eina_test_simple)
145 fail_if(row != 3 || col != 5); 145 fail_if(row != 3 || col != 5);
146 146
147 test1 = eina_matrixsparse_data_idx_get(matrix, 4, 3); 147 test1 = eina_matrixsparse_data_idx_get(matrix, 4, 3);
148 fail_if(test1 == NULL);
148 fail_if(*test1 != data[4][3]); 149 fail_if(*test1 != data[4][3]);
149 150
150 test1 = eina_matrixsparse_data_idx_get(matrix, 1, 3); 151 test1 = eina_matrixsparse_data_idx_get(matrix, 1, 3);
152 fail_if(test1 == NULL);
151 fail_if(*test1 != data[1][3]); 153 fail_if(*test1 != data[1][3]);
152 154
153 /* data changing */ 155 /* data changing */