From e37d9e3856c3887ec201e47fc368f94f7d1975ba Mon Sep 17 00:00:00 2001 From: barbieri Date: Thu, 19 Jan 2012 19:40:41 +0000 Subject: [PATCH] efreet_alloc test: check if icons are missing. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/efreet@67359 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/tests/compare/efreet_alloc.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/tests/compare/efreet_alloc.c b/src/tests/compare/efreet_alloc.c index e576918..1527f77 100644 --- a/src/tests/compare/efreet_alloc.c +++ b/src/tests/compare/efreet_alloc.c @@ -6,7 +6,7 @@ int main(void) { - int i = 0, k; + int i = 0, k, errs = 0; const char *path; efreet_init(); @@ -16,14 +16,15 @@ main(void) for (i = 0; icons[i]; i++) { path = efreet_icon_path_find(THEME, icons[i], SIZE); -// printf("%s: %s\n", icons[i], (path ? path : "NOT FOUND")); + if (!path) + { + printf("%s: NOT FOUND\n", icons[i]); + errs++; + } } } - (void) path; - efreet_shutdown(); - return 0; + return errs > 0; } - -- 2.7.4