cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=08b99cf20169de924e935160d7b18efe6bdac12f

commit 08b99cf20169de924e935160d7b18efe6bdac12f
Author: vivek <vivek.el...@samsung.com>
Date:   Wed Apr 22 12:38:58 2015 +0200

    eina: add test case for eina_strbuf_string_free function.
    
    Summary:
    Added test case for eina_strbuf_string_free function in eina_strbuf module
    
    Signed-off-by: vivek <vivek.el...@samsung.com>
    
    Reviewers: cedric
    
    Subscribers: cedric
    
    Differential Revision: https://phab.enlightenment.org/D2382
    
    Signed-off-by: Cedric BAIL <ced...@osg.samsung.com>
---
 src/tests/eina/eina_test_strbuf.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/tests/eina/eina_test_strbuf.c 
b/src/tests/eina/eina_test_strbuf.c
index 406b467..7a1386c 100644
--- a/src/tests/eina/eina_test_strbuf.c
+++ b/src/tests/eina/eina_test_strbuf.c
@@ -56,6 +56,11 @@ START_TEST(strbuf_simple)
    fail_if(eina_strbuf_length_get(buf) != 0);
    fail_if(!strcmp(eina_strbuf_string_get(buf), TEXT));
 
+   eina_strbuf_string_free(buf);
+   fail_if(eina_strbuf_length_get(buf));
+   eina_strbuf_append(buf, TEXT);
+   fail_if(strcmp(eina_strbuf_string_get(buf), TEXT));
+
    eina_strbuf_free(buf);
 
    eina_shutdown();

-- 


Reply via email to