summaryrefslogtreecommitdiff
path: root/src/tests/efreet/ef_menu.c
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-08 23:45:48 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-08 23:45:48 +0000
commitf57968f1581e443472689488f26f8cd3bcede1cc (patch)
tree43e0c63094d122b2e50eb7e2af74b1373a497c4b /src/tests/efreet/ef_menu.c
parent90e4c429193f103005acfa16258100a8507c1b41 (diff)
efl/efreet: improve tests, fix bogus warning.
* tests will run locally now, not just from installed files. * efreet_init_new(NULL) is valid, actually used by efreet_desktop_save() SVN revision: 82428
Diffstat (limited to 'src/tests/efreet/ef_menu.c')
-rw-r--r--src/tests/efreet/ef_menu.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tests/efreet/ef_menu.c b/src/tests/efreet/ef_menu.c
index 4adbd941c0..9f148efc6c 100644
--- a/src/tests/efreet/ef_menu.c
+++ b/src/tests/efreet/ef_menu.c
@@ -32,7 +32,7 @@ ef_cb_menu_get(void)
32 Efreet_Menu *menu; 32 Efreet_Menu *menu;
33 33
34 menu = efreet_menu_get(); 34 menu = efreet_menu_get();
35// menu = efreet_menu_parse(PACKAGE_DATA_DIR"/test/test.menu"); 35// menu = efreet_menu_parse(ef_test_path_get("test.menu"));
36 if (!menu) 36 if (!menu)
37 { 37 {
38 printf("efreet_menu_get() returned NULL\n"); 38 printf("efreet_menu_get() returned NULL\n");
@@ -50,7 +50,7 @@ ef_cb_menu_with_slashes(void)
50{ 50{
51 Efreet_Menu *menu; 51 Efreet_Menu *menu;
52 52
53 menu = efreet_menu_parse(PACKAGE_DATA_DIR"/test/test_menu_slash_bad.menu"); 53 menu = efreet_menu_parse(ef_test_path_get("test_menu_slash_bad.menu"));
54 if (menu) 54 if (menu)
55 { 55 {
56 printf("efreet_menu_get() didn't return NULL\n"); 56 printf("efreet_menu_get() didn't return NULL\n");
@@ -67,7 +67,7 @@ ef_cb_menu_save(void)
67 int ret; 67 int ret;
68 68
69// menu = efreet_menu_get(); 69// menu = efreet_menu_get();
70 menu = efreet_menu_parse(PACKAGE_DATA_DIR"/test/test.menu"); 70 menu = efreet_menu_parse(ef_test_path_get("test.menu"));
71 if (!menu) 71 if (!menu)
72 { 72 {
73 printf("efreet_menu_get() returned NULL\n"); 73 printf("efreet_menu_get() returned NULL\n");
@@ -86,7 +86,7 @@ ef_cb_menu_edit(void)
86 Efreet_Desktop *desktop; 86 Efreet_Desktop *desktop;
87 87
88// menu = efreet_menu_get(); 88// menu = efreet_menu_get();
89 menu = efreet_menu_parse(PACKAGE_DATA_DIR"/test/test.menu"); 89 menu = efreet_menu_parse(ef_test_path_get("test.menu"));
90 if (!menu) 90 if (!menu)
91 { 91 {
92 printf("efreet_menu_get() returned NULL\n"); 92 printf("efreet_menu_get() returned NULL\n");
@@ -98,7 +98,7 @@ ef_cb_menu_edit(void)
98 printf("\n"); 98 printf("\n");
99#endif 99#endif
100 100
101 desktop = efreet_desktop_get(PACKAGE_DATA_DIR"/test/test.desktop"); 101 desktop = efreet_desktop_get(ef_test_path_get("test.desktop"));
102 if (!desktop) 102 if (!desktop)
103 { 103 {
104 efreet_menu_free(menu); 104 efreet_menu_free(menu);