tests: dont polute stderr if the test succeeds/skips

Results in spurious 'warn' results in piglit. Also don't print
progress indicators when not outputting to a terminal.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter
2012-11-27 20:04:15 +01:00
parent 4fae0c65c5
commit 021909e10d
5 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ int main(int argc, char *argv[])
ret = drmIoctl(fd, CONTEXT_CREATE_IOCTL, &create);
if (ret != 0 && (errno == ENODEV || errno == EINVAL)) {
fprintf(stderr, "Kernel is too old, or contexts not supported: %s\n",
printf("Kernel is too old, or contexts not supported: %s\n",
strerror(errno));
exit(77);
} else if (ret != 0) {