From: Martin R. <mr...@us...> - 2006-02-02 16:14:53
|
Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/madvise In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9335 Modified Files: madvise02.c Log Message: Fix for defect 21046, testcase should fail ENOMEM passes due to insufficient pages Index: madvise02.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/madvise/madvise02.c,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** madvise02.c 6 Oct 2005 18:35:20 -0000 1.11 --- madvise02.c 2 Feb 2006 16:14:42 -0000 1.12 *************** *** 236,241 **** * prashant yendigeri added the below line because with above line ENOMEM was not generated * under most test conditions. */ ! TEST(madvise(file,stat.st_size + 5 * pagesize,MADV_NORMAL)); #endif check_and_print(ENOMEM); --- 236,244 ---- * prashant yendigeri added the below line because with above line ENOMEM was not generated * under most test conditions. + * Changed multiplier from 5 to 30, newer version of gcc links library code + * which itself takes 28 pages causing the TC to PASS when it should FAIL ENOMEM + * This is bugzilla defect 21046 */ ! TEST(madvise(file,stat.st_size + 30 * pagesize,MADV_NORMAL)); #endif check_and_print(ENOMEM); |