summaryrefslogtreecommitdiff
path: root/src/tests/compare/efreet_alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/compare/efreet_alloc.c')
-rw-r--r--src/tests/compare/efreet_alloc.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/tests/compare/efreet_alloc.c b/src/tests/compare/efreet_alloc.c
new file mode 100644
index 0000000..1527f77
--- /dev/null
+++ b/src/tests/compare/efreet_alloc.c
@@ -0,0 +1,30 @@
+#include <Efreet.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include "comp.h"
+
+int
+main(void)
+{
+ int i = 0, k, errs = 0;
+ const char *path;
+
+ efreet_init();
+
+ for (k = 0; k < LOOPS; k++)
+ {
+ for (i = 0; icons[i]; i++)
+ {
+ path = efreet_icon_path_find(THEME, icons[i], SIZE);
+ if (!path)
+ {
+ printf("%s: NOT FOUND\n", icons[i]);
+ errs++;
+ }
+ }
+ }
+
+ efreet_shutdown();
+
+ return errs > 0;
+}