projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d03482a
)
eina: get rid of float comparison warning from str test.
author
Cedric BAIL
<cedric@osg.samsung.com>
Tue, 20 Dec 2016 00:27:22 +0000
(16:27 -0800)
committer
Cedric BAIL
<cedric@osg.samsung.com>
Tue, 20 Dec 2016 00:33:46 +0000
(16:33 -0800)
src/tests/eina/eina_test_str.c
patch
|
blob
|
history
diff --git
a/src/tests/eina/eina_test_str.c
b/src/tests/eina/eina_test_str.c
index 3ed8b1ec2a5128722187266d00d2bdd4628a72f1..0af97e29a93787bec2fd7ca2c790f93725592185 100644
(file)
--- a/
src/tests/eina/eina_test_str.c
+++ b/
src/tests/eina/eina_test_str.c
@@
-336,7
+336,7
@@
START_TEST(str_memdup)
t2 = (struct temp *)eina_memdup((unsigned char *)&t1, sizeof(struct temp), EINA_TRUE);
fail_if(t2->i != t1.i);
fail_if(strcmp(t2->s,t1.s) != 0);
- fail_if(
t2->d != t1.d
);
+ fail_if(
!EINA_FLT_CMP(t2->d, t1.d)
);
free(t2);
memcpy(buf, "aaabbb", 6);