summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-11-24 19:26:16 -0700
committerJens Axboe <axboe@kernel.dk>2019-11-24 19:26:16 -0700
commit3f16174d1b0e7a2ec996fbf647911eafd5a18f66 (patch)
treed8776da78ec56f425dc77efcf72e22f1250bece6
parent6aa467cacdc1f91216a99fc74c53af3afe074922 (diff)
downloadliburing-3f16174d1b0e7a2ec996fbf647911eafd5a18f66.tar.gz
liburing-3f16174d1b0e7a2ec996fbf647911eafd5a18f66.tar.bz2
test/fc2a85cb02ef-test: make sure we skip on non-root
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--test/fc2a85cb02ef-test.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/fc2a85cb02ef-test.c b/test/fc2a85cb02ef-test.c
index 4a02631..39f99df 100644
--- a/test/fc2a85cb02ef-test.c
+++ b/test/fc2a85cb02ef-test.c
@@ -86,8 +86,10 @@ uint64_t r[2] = {0xffffffffffffffff, 0xffffffffffffffff};
int main(void)
{
syscall(__NR_mmap, 0x20000000ul, 0x1000000ul, 3ul, 0x32ul, -1, 0);
- if (setup_fault())
- printf("Test needs failslab/fail_futex/fail_page_alloc enabled\n");
+ if (setup_fault()) {
+ printf("Test needs failslab/fail_futex/fail_page_alloc enabled, skipped\n");
+ return 0;
+ }
intptr_t res = 0;
*(uint32_t*)0x20000000 = 0;
*(uint32_t*)0x20000004 = 0;