{
int divider = 200;
+ if (!isatty(fileno(stderr)))
+ return;
+
if (i+1 >= total) {
fprintf(stderr, "\r%s100%%\n", header);
return;
drmtest_progress("gem_cpu_reloc: ", 2*count+i, 3*count);
}
- fprintf(stderr, "Test suceeded, cleanup up - this might take a while.\n");
+ printf("Test suceeded, cleanup up - this might take a while.\n");
close(fd);
return 0;
drmtest_progress("gem_cs_prefetch: ", i, count);
}
- fprintf(stderr, "Test suceeded, cleanup up - this might take a while.\n");
+ printf("Test suceeded, cleanup up - this might take a while.\n");
drm_intel_bufmgr_destroy(bufmgr);
close(fd);
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) {
assert(ret != -1);
junk->filp = fopen(path, junk->mode);
if (junk->filp == NULL) {
- fprintf(stderr, "Kernel is too old. GTFO\n");
+ printf("Kernel is too old. GTFO\n");
exit(77);
}
val = readval(junk->filp);