mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-21 13:23:02 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user