projects
/
comedilib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3e40fe
)
added test to make sure area is unmapped
author
David Schleef
<ds@schleef.org>
Fri, 2 Mar 2001 06:52:06 +0000
(06:52 +0000)
committer
David Schleef
<ds@schleef.org>
Fri, 2 Mar 2001 06:52:06 +0000
(06:52 +0000)
testing/mmap.c
patch
|
blob
|
history
diff --git
a/testing/mmap.c
b/testing/mmap.c
index 8a20e06691cb84117254a5e47d1cfeca5b53b90e..38e012e6cd835f018c1a155bb479ac3d5847637c 100644
(file)
--- a/
testing/mmap.c
+++ b/
testing/mmap.c
@@
-125,6
+125,16
@@
int test_mmap(void)
}
munmap(map,MAPLEN);
+ /* test if area is really unmapped */
+ for(adr=map;adr<(void *)map+MAPLEN;adr+=PAGE_SIZE){
+ ret=test_segfault(adr);
+ if(ret){
+ printf("%p segfaulted (ok)\n",adr);
+ }else{
+ printf("E: %p still mapped\n",adr);
+ }
+ }
+
free(buf);
return 0;