diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-01-04 01:11:00 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-01-04 01:11:00 +0000 |
commit | 6d55934c65607a0db77403b6b364af25e7ae1a70 (patch) | |
tree | e8de91439269693965fab1cfabe18975512e7763 /test-mmap.c | |
parent | 25d3bfdfd1b1a2da2d820f6bbb0406ef7dd2466c (diff) | |
download | mandoc-6d55934c65607a0db77403b6b364af25e7ae1a70.tar.gz mandoc-6d55934c65607a0db77403b6b364af25e7ae1a70.tar.zst mandoc-6d55934c65607a0db77403b6b364af25e7ae1a70.zip |
Clean up feature tests:
* Split the configure steering script out of the Makefile.
* Let the configure step depend on the test sources.
* Clean up the test programs such that they can be run.
Diffstat (limited to 'test-mmap.c')
-rw-r--r-- | test-mmap.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test-mmap.c b/test-mmap.c index 1e0f9422..7fb2f973 100644 --- a/test-mmap.c +++ b/test-mmap.c @@ -2,9 +2,7 @@ #include <sys/mman.h> int -main(int argc, char **argv) +main(void) { - - mmap(0, 0, PROT_READ, MAP_SHARED, -1, 0); - return 0; + return(MAP_FAILED != mmap(NULL, 1, PROT_READ, MAP_SHARED, -1, 0)); } |