efreet_alloc test: check if icons are missing.

SVN revision: 67359
This commit is contained in:
Gustavo Sverzut Barbieri 2012-01-19 19:40:41 +00:00
parent 83d9012a96
commit 5cfb4088e8
1 changed files with 7 additions and 6 deletions

View File

@ -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;
}