summaryrefslogtreecommitdiff
path: root/src/tests/efreet
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2013-01-14 21:04:40 +0000
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2013-01-14 21:04:40 +0000
commit366a3dee3b3248220917da994f617e21be40d125 (patch)
tree6f8b9495d1bdeea2a9bcf0badb4677e2240e35ac /src/tests/efreet
parent522bb558e9babe40c34d22dad25be8d377810615 (diff)
efl/efreet: better printing of test results
Print the name of each test together with the status so it's easier to check which test failed/passed regardless the test's output: ./src/tests/efreet/efreet_test 2>/dev/null | grep -e "^FINISHED" The tests themselves should not print to stdout, so we wouldn't need the grep. But this is already better than we had before. SVN revision: 82782
Diffstat (limited to 'src/tests/efreet')
-rw-r--r--src/tests/efreet/main.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/tests/efreet/main.c b/src/tests/efreet/main.c
index d5ef3be..e808992 100644
--- a/src/tests/efreet/main.c
+++ b/src/tests/efreet/main.c
@@ -149,16 +149,15 @@ main(int argc, char ** argv)
149 149
150 num_tests ++; 150 num_tests ++;
151 151
152 printf("%s:\t\t", tests[i].name); 152 printf("Starting \'%s\':\n", tests[i].name);
153 fflush(stdout);
154 start = ecore_time_get(); 153 start = ecore_time_get();
155 154
156 environ = NULL; 155 environ = NULL;
157 ret = tests[i].cb(); 156 ret = tests[i].cb();
158 157
159 printf("%s in %.3f seconds\n", (ret ? "PASSED" : "FAILED"), 158 printf("FINISHED \'%s\': %s in %.3f seconds\n", tests[i].name,
160 ecore_time_get() - start); 159 (ret ? "PASSED" : "FAILED"), ecore_time_get() - start);
161 passed += ret; 160 passed += !!ret;
162 161
163 efreet_shutdown(); 162 efreet_shutdown();
164 } 163 }