summaryrefslogtreecommitdiff
path: root/tests/setversion.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2009-04-06 17:22:10 -0400
committerKristian Høgsberg <krh@redhat.com>2009-04-06 17:22:10 -0400
commit751db3fe27d5e51925c28ceecadb828784d46028 (patch)
tree8109c9732e345d740dd531d4a2f97db094b5ac4e /tests/setversion.c
parent8a5c4d567fafffbda57cbe5e4ed8c419193cada5 (diff)
Skip tests that require rootlibdrm-2.4.6
This lets us do make distcheck as non-root.
Diffstat (limited to 'tests/setversion.c')
-rw-r--r--tests/setversion.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/setversion.c b/tests/setversion.c
index f4bfbfba..3aaf7cc2 100644
--- a/tests/setversion.c
+++ b/tests/setversion.c
@@ -40,6 +40,11 @@ int main(int argc, char **argv)
int fd, ret;
drm_set_version_t sv, version;
+ if (getuid() != 0) {
+ fprintf(stderr, "setversion test requires root, skipping\n");
+ return 0;
+ }
+
fd = drm_open_any_master();
/* First, check that we can get the DD/DI versions. */