summaryrefslogtreecommitdiff
path: root/source4/build/tests/shared_mmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/build/tests/shared_mmap.c')
-rw-r--r--source4/build/tests/shared_mmap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/build/tests/shared_mmap.c b/source4/build/tests/shared_mmap.c
index 50dad8d696..40d462302e 100644
--- a/source4/build/tests/shared_mmap.c
+++ b/source4/build/tests/shared_mmap.c
@@ -39,6 +39,8 @@ main()
MAP_FILE | MAP_SHARED,
fd, 0);
+ if (buf == (int *)-1) exit(1);
+
while (count-- && buf[9124] != 55732) sleep(1);
if (count <= 0) exit(1);