Enlightenment CVS committal

Author  : cedric
Project : e17
Module  : proto/eina

Dir     : e17/proto/eina/src/tests


Modified Files:
        eina_test_error.c 


Log Message:
Fully cover eina_error API.


===================================================================
RCS file: /cvs/e/e17/proto/eina/src/tests/eina_test_error.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- eina_test_error.c   1 Aug 2008 14:27:01 -0000       1.1
+++ eina_test_error.c   6 Aug 2008 15:51:19 -0000       1.2
@@ -1,3 +1,5 @@
+#include <stdlib.h>
+
 #include "eina_suite.h"
 #include "eina_error.h"
 
@@ -16,12 +18,12 @@
 
 #define TEST_TEXT "The big test\n"
 
-#include <stdio.h>
-
 START_TEST(eina_error_errno)
 {
    int test;
 
+   setenv("EINA_ERROR_LEVEL", "1", 0);
+
    eina_error_init();
 
    test = eina_error_register(TEST_TEXT);
@@ -37,12 +39,16 @@
 
 START_TEST(eina_error_macro)
 {
+   eina_error_init();
+
    eina_error_log_level_set(EINA_ERROR_LEVEL_DBG);
 
    EINA_ERROR_PERR("An error\n");
    EINA_ERROR_PINFO("An info\n");
    EINA_ERROR_PWARN("A warning\n");
    EINA_ERROR_PDBG("A debug\n");
+
+   eina_error_shutdown();
 }
 END_TEST
 



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to