[Lsb-messages] /var/www/bzr/lsb/devel/runtime-test r1287: Apply recommended fix so posix_madvise runs out of memory (bug 3792).

Jeff Licquia licquia at linuxfoundation.org
Mon Aug 5 22:56:12 UTC 2013


------------------------------------------------------------
revno: 1287
author: Siddhesh Poyarekar
committer: Jeff Licquia <licquia at linuxfoundation.org>
branch nick: runtime-test
timestamp: Mon 2013-08-05 18:56:12 -0400
message:
  Apply recommended fix so posix_madvise runs out of memory (bug 3792).
modified:
  modules/vsx-pcts/tset/POSIX.os/files/posix_madvise/posix_madvise.c
-------------- next part --------------
=== modified file 'modules/vsx-pcts/tset/POSIX.os/files/posix_madvise/posix_madvise.c'
--- a/modules/vsx-pcts/tset/POSIX.os/files/posix_madvise/posix_madvise.c	2008-12-10 19:42:07 +0000
+++ b/modules/vsx-pcts/tset/POSIX.os/files/posix_madvise/posix_madvise.c	2013-08-05 22:56:12 +0000
@@ -197,7 +197,7 @@
         return;
     }
 
-    retval = posix_madvise((void*)file,st.st_size*190000,POSIX_MADV_NORMAL);
+    retval = posix_madvise((void*)file,st.st_size*1900000,POSIX_MADV_NORMAL);
 
     if(retval != ENOMEM) {
 	tet_printf("posix_madvise returned %s instead of ENOMEM",



More information about the lsb-messages mailing list