diff options
-rw-r--r-- | tests/gem_ctx_bad_destroy.c | 2 | ||||
-rw-r--r-- | tests/gem_ctx_bad_exec.c | 2 | ||||
-rw-r--r-- | tests/gem_ctx_create.c | 2 | ||||
-rw-r--r-- | tests/gem_ctx_exec.c | 2 | ||||
-rw-r--r-- | tests/gem_seqno_wrap.c | 2 | ||||
-rw-r--r-- | tests/sysfs_rc6_residency.c | 2 | ||||
-rw-r--r-- | tests/sysfs_rps.c | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/tests/gem_ctx_bad_destroy.c b/tests/gem_ctx_bad_destroy.c index 5e56d5a8..aec27958 100644 --- a/tests/gem_ctx_bad_destroy.c +++ b/tests/gem_ctx_bad_destroy.c @@ -54,7 +54,7 @@ static uint32_t context_create(int fd) ret = drmIoctl(fd, CONTEXT_CREATE_IOCTL, &create); if (ret == -1 && (errno == ENODEV || errno == EINVAL)) - exit(77); + igt_skip(); else if (ret) abort(); diff --git a/tests/gem_ctx_bad_exec.c b/tests/gem_ctx_bad_exec.c index 55917981..a83f65b9 100644 --- a/tests/gem_ctx_bad_exec.c +++ b/tests/gem_ctx_bad_exec.c @@ -60,7 +60,7 @@ static uint32_t context_create(int fd) ret = drmIoctl(fd, CONTEXT_CREATE_IOCTL, &create); if (ret == -1 && (errno == ENODEV || errno == EINVAL)) { - exit(77); + igt_skip(); } else if (ret) { abort(); } diff --git a/tests/gem_ctx_create.c b/tests/gem_ctx_create.c index 5440ae07..f451910f 100644 --- a/tests/gem_ctx_create.c +++ b/tests/gem_ctx_create.c @@ -53,7 +53,7 @@ int main(int argc, char *argv[]) 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); diff --git a/tests/gem_ctx_exec.c b/tests/gem_ctx_exec.c index c2021bf9..2d1a7deb 100644 --- a/tests/gem_ctx_exec.c +++ b/tests/gem_ctx_exec.c @@ -65,7 +65,7 @@ static uint32_t context_create(int fd) ret = drmIoctl(fd, CONTEXT_CREATE_IOCTL, &create); if (ret == -1 && (errno == ENODEV || errno == EINVAL)) - exit(77); + igt_skip(); else if (ret) abort(); diff --git a/tests/gem_seqno_wrap.c b/tests/gem_seqno_wrap.c index c9368759..60082f97 100644 --- a/tests/gem_seqno_wrap.c +++ b/tests/gem_seqno_wrap.c @@ -371,7 +371,7 @@ static int dfs_open(int mode) 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; diff --git a/tests/sysfs_rc6_residency.c b/tests/sysfs_rc6_residency.c index 13f00ad1..7e75acc9 100644 --- a/tests/sysfs_rc6_residency.c +++ b/tests/sysfs_rc6_residency.c @@ -79,7 +79,7 @@ int main(int argc, char *argv[]) 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. */ diff --git a/tests/sysfs_rps.c b/tests/sysfs_rps.c index 9c1d60c1..867f9130 100644 --- a/tests/sysfs_rps.c +++ b/tests/sysfs_rps.c @@ -150,7 +150,7 @@ int main(int argc, char *argv[]) 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); |