From: Dmitry V. Levin Date: Wed, 20 Apr 2016 05:40:58 +0000 (+0000) Subject: tests/shmxt.c: do not use SHM_RND, it is unreliable X-Git-Tag: v4.12~380 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bea707377d2ee3e1950bfa43537ef928163a5fa6;p=strace tests/shmxt.c: do not use SHM_RND, it is unreliable * tests/shmxt.c (main): Do not set SHM_RND flag. --- diff --git a/tests/shmxt.c b/tests/shmxt.c index 628f5b2b..c6e1652f 100644 --- a/tests/shmxt.c +++ b/tests/shmxt.c @@ -40,10 +40,10 @@ main(void) perror_msg_and_skip("shmdt"); printf("shmdt(%p) = 0\n", shmaddr); - void *shmaddr2 = shmat(id, shmaddr, SHM_RND); + void *shmaddr2 = shmat(id, shmaddr, 0); if (shmaddr2 == (void *)(-1)) - perror_msg_and_skip("shmat SHM_RND"); - printf("%s(%d, %p, SHM_RND) = %p\n", + perror_msg_and_skip("shmat %p", shmaddr); + printf("%s(%d, %p, 0) = %p\n", SHMAT, id, shmaddr, shmaddr2); puts("+++ exited with 0 +++");