aboutsummaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2004-08-24 09:58:16 +0000
committerCorinna Vinschen <corinna@vinschen.de>2004-08-24 09:58:16 +0000
commit26657d60523c88bef70bb7de0dcc6a4e43255f1f (patch)
tree2cd8079b4e576342b02cea669108e9ab75df9981 /winsup
parent327284cf3ac5f201f8509a77923a88dd886ff4d6 (diff)
downloadnewlib-26657d60523c88bef70bb7de0dcc6a4e43255f1f.zip
newlib-26657d60523c88bef70bb7de0dcc6a4e43255f1f.tar.gz
newlib-26657d60523c88bef70bb7de0dcc6a4e43255f1f.tar.bz2
* winsup.api/mmaptest01.c (main): Accomodate 9x memory usage.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/testsuite/ChangeLog4
-rw-r--r--winsup/testsuite/winsup.api/mmaptest01.c5
2 files changed, 8 insertions, 1 deletions
diff --git a/winsup/testsuite/ChangeLog b/winsup/testsuite/ChangeLog
index 80de6f1..181238b 100644
--- a/winsup/testsuite/ChangeLog
+++ b/winsup/testsuite/ChangeLog
@@ -1,5 +1,9 @@
2004-08-24 Corinna Vinschen <corinna@vinschen.de>
+ * winsup.api/mmaptest01.c (main): Accomodate 9x memory usage.
+
+2004-08-24 Corinna Vinschen <corinna@vinschen.de>
+
* winsup.api/ltp/symlink01.c (do_link): Print inode numbers using %llu
format specifier.
diff --git a/winsup/testsuite/winsup.api/mmaptest01.c b/winsup/testsuite/winsup.api/mmaptest01.c
index 99a7d2e..fe3226d 100644
--- a/winsup/testsuite/winsup.api/mmaptest01.c
+++ b/winsup/testsuite/winsup.api/mmaptest01.c
@@ -155,7 +155,10 @@ int main ()
buf1[0] = 0x7f;
tst_resm (memcmp (buf1, buf2, 20) ? TFAIL : TPASS,
"changes are shared between MAP_SHARED mappings of the same file");
- munmap (buf2, 4096);
+ if (buf1 == buf2) /* Win 9x weirdness */
+ msync (buf2, 4096, MS_SYNC);
+ else
+ munmap (buf2, 4096);
fd2 = open (fnam1, O_RDWR | O_BINARY, 0644);
memset (buf3, 0, 20);