cedric pushed a commit to branch master.
commit be2cebab17db3e1083405e9f40f109022f4ce0b6
Author: Cedric BAIL <[email protected]>
Date: Wed Apr 3 19:21:51 2013 +0900
eina: fix test logic after change in Eina_Cow GC.
---
src/tests/eina/eina_test_cow.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/tests/eina/eina_test_cow.c b/src/tests/eina/eina_test_cow.c
index a081b34..7967e0e 100644
--- a/src/tests/eina/eina_test_cow.c
+++ b/src/tests/eina/eina_test_cow.c
@@ -125,12 +125,15 @@ START_TEST(eina_cow)
default_value.c != 42 || default_value.i != 0);
fail_if(eina_cow_gc(cow) == EINA_FALSE);
- fail_if(eina_cow_gc(cow) == EINA_FALSE);
write = eina_cow_write(cow, (const Eina_Cow_Data**) &cur);
write->i = 7; write->c = 42;
eina_cow_done(cow, (const Eina_Cow_Data**) &cur, write, EINA_TRUE);
+ write = eina_cow_write(cow, (const Eina_Cow_Data**) &prev);
+ eina_cow_done(cow, (const Eina_Cow_Data**) &prev, write, EINA_TRUE);
+
+ fail_if(eina_cow_gc(cow) == EINA_FALSE);
fail_if(eina_cow_gc(cow) == EINA_FALSE);
fail_if(cur != prev);
--
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html