summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/gem_flink.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/gem_flink.c b/tests/gem_flink.c
index 8dc88320..ce43e422 100644
--- a/tests/gem_flink.c
+++ b/tests/gem_flink.c
@@ -117,10 +117,15 @@ int main(int argc, char **argv)
{
int fd;
+ if (geteuid()) {
+ fprintf(stderr, "requires root privileges, skipping\n");
+ return 77;
+ }
+
fd = drm_open_matching("8086:*", 0);
if (fd < 0) {
fprintf(stderr, "failed to open intel drm device, skipping\n");
- return 0;
+ return 77;
}
test_flink(fd);