ret = drmIoctl(fd, CONTEXT_CREATE_IOCTL, &create);
if (ret == -1 && (errno == ENODEV || errno == EINVAL))
- exit(77);
+ igt_skip();
else if (ret)
abort();
ret = drmIoctl(fd, CONTEXT_CREATE_IOCTL, &create);
if (ret == -1 && (errno == ENODEV || errno == EINVAL)) {
- exit(77);
+ igt_skip();
} else if (ret) {
abort();
}
if (ret != 0 && (errno == ENODEV || errno == EINVAL)) {
printf("Kernel is too old, or contexts not supported: %s\n",
strerror(errno));
- exit(77);
+ igt_skip();
} else if (ret != 0) {
fprintf(stderr, "%s\n", strerror(errno));
igt_fail(1);
ret = drmIoctl(fd, CONTEXT_CREATE_IOCTL, &create);
if (ret == -1 && (errno == ENODEV || errno == EINVAL))
- exit(77);
+ igt_skip();
else if (ret)
abort();
fprintf(stderr,
"error %d opening '%s/%d/%s'. too old kernel?\n",
errno, dfs_base, card_index, dfs_entry);
- exit(77);
+ igt_skip();
}
return fh;
file = fopen(path, "r");
if (!file) {
printf("kernel too old or rc6 not supported on this platform.\n");
- exit(77);
+ igt_skip();
}
/* claim success if no rc6 enabled. */
junk->filp = fopen(path, junk->mode);
if (junk->filp == NULL) {
printf("Kernel is too old. GTFO\n");
- exit(77);
+ igt_skip();
}
val = readval(junk->filp);
igt_assert(val >= 0);