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
num_tests ++;
- printf("%s:\t\t", tests[i].name);
- fflush(stdout);
+ printf("Starting \'%s\':\n", tests[i].name);
start = ecore_time_get();
environ = NULL;
ret = tests[i].cb();
- printf("%s in %.3f seconds\n", (ret ? "PASSED" : "FAILED"),
- ecore_time_get() - start);
- passed += ret;
+ printf("FINISHED \'%s\': %s in %.3f seconds\n", tests[i].name,
+ (ret ? "PASSED" : "FAILED"), ecore_time_get() - start);
+ passed += !!ret;
efreet_shutdown();
}