summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/evil/evil_stdlib.c1
-rw-r--r--src/tests/eina/eina_test_lock.c4
-rw-r--r--src/tests/eina/eina_test_log.c1
-rw-r--r--src/tests/eina/eina_test_strbuf.c2
-rw-r--r--src/tests/eina/eina_test_ustr.c2
5 files changed, 3 insertions, 7 deletions
diff --git a/src/lib/evil/evil_stdlib.c b/src/lib/evil/evil_stdlib.c
index 56d0ede881..dbb9779ee4 100644
--- a/src/lib/evil/evil_stdlib.c
+++ b/src/lib/evil/evil_stdlib.c
@@ -119,7 +119,6 @@ _mkstemp(char *suffix, int val)
119 suffix[4] = lookup[v % 62]; 119 suffix[4] = lookup[v % 62];
120 v /= 62; 120 v /= 62;
121 suffix[5] = lookup[v % 62]; 121 suffix[5] = lookup[v % 62];
122 v /= 62;
123 122
124 val += 7777; 123 val += 7777;
125 124
diff --git a/src/tests/eina/eina_test_lock.c b/src/tests/eina/eina_test_lock.c
index c0b45bd885..6636706288 100644
--- a/src/tests/eina/eina_test_lock.c
+++ b/src/tests/eina/eina_test_lock.c
@@ -137,12 +137,12 @@ _eina_test_tls_thread(void *data EINA_UNUSED, Eina_Thread t EINA_UNUSED)
137 int *ptr; 137 int *ptr;
138 138
139 ptr = eina_tls_get(key); 139 ptr = eina_tls_get(key);
140 fail_if(eina_tls_get(key) != NULL); 140 fail_if(ptr != NULL);
141 141
142 fail_if(!eina_tls_set(key, _eina_test_tls_alloc(24))); 142 fail_if(!eina_tls_set(key, _eina_test_tls_alloc(24)));
143 143
144 ptr = eina_tls_get(key); 144 ptr = eina_tls_get(key);
145 fail_if(eina_tls_get(key) == NULL); 145 fail_if(ptr == NULL);
146 fail_if(*ptr != 24); 146 fail_if(*ptr != 24);
147 147
148 return NULL; 148 return NULL;
diff --git a/src/tests/eina/eina_test_log.c b/src/tests/eina/eina_test_log.c
index cc20bfc98b..44bea28816 100644
--- a/src/tests/eina/eina_test_log.c
+++ b/src/tests/eina/eina_test_log.c
@@ -376,7 +376,6 @@ END_TEST
376 376
377START_TEST(eina_log_customize) 377START_TEST(eina_log_customize)
378{ 378{
379 struct log_ctx ctx;
380 int d; 379 int d;
381 380
382 /* please don't define EINA_LOG_LEVELS for it */ 381 /* please don't define EINA_LOG_LEVELS for it */
diff --git a/src/tests/eina/eina_test_strbuf.c b/src/tests/eina/eina_test_strbuf.c
index b4e1cd1d02..85176ccf67 100644
--- a/src/tests/eina/eina_test_strbuf.c
+++ b/src/tests/eina/eina_test_strbuf.c
@@ -390,8 +390,6 @@ START_TEST(strbuf_realloc)
390 390
391 eina_strbuf_remove(buf, 0, 0 + 32); 391 eina_strbuf_remove(buf, 0, 0 + 32);
392 fail_if(eina_strbuf_length_get(buf) != sz - 32); 392 fail_if(eina_strbuf_length_get(buf) != sz - 32);
393 sz -= 32;
394
395 393
396 eina_strbuf_free(buf); 394 eina_strbuf_free(buf);
397 395
diff --git a/src/tests/eina/eina_test_ustr.c b/src/tests/eina/eina_test_ustr.c
index eba07e37e2..5bf7bbee8f 100644
--- a/src/tests/eina/eina_test_ustr.c
+++ b/src/tests/eina/eina_test_ustr.c
@@ -161,7 +161,7 @@ START_TEST(eina_unicode_strncpy_test)
161 fail_if(buf[9] != 0); 161 fail_if(buf[9] != 0);
162 162
163 buf[0] = '7'; 163 buf[0] = '7';
164 rv = eina_unicode_strncpy(buf, STR1, 0); 164 eina_unicode_strncpy(buf, STR1, 0);
165 fail_if(buf[0] != '7'); 165 fail_if(buf[0] != '7');
166 166
167#ifdef EINA_SAFETY_CHECKS 167#ifdef EINA_SAFETY_CHECKS