Doug Chapman wrote:
> The behavior of the mincore system call has changed in the 2.6.21
> source.  The old behavior was to return ENOMEM when mincore was called
> for memory that was not file backed.  Linus, myself and others had some
> discussion on this and determined that it doesn't make sense for mincore
> to be restricted to file backed memory.  This causes mincore01 to fail
> since it expects ENOMEM on test 4.
> 
> I also discovered that the comments did not match the test since other
> cases have been removed but the comments had not been modified to match
> the changes to the code.

I have a bug filed about this issue that has never been acknowledged:

http://sourceforge.net/tracker/index.php?func=detail&aid=1687908&group_id=3382&atid=103382

Perhaps that is the wrong forum.

In any case, I downloaded ltp-full-20070331.tgz and tried to apply your
patch and got:

$ patch -Np1 -i ../mincore01.patch
patching file testcases/kernel/syscalls/mincore/mincore01.c
Hunk #1 FAILED at 27.
Hunk #3 FAILED at 95.
Hunk #4 FAILED at 194.
3 out of 4 hunks FAILED -- saving rejects to file
testcases/kernel/syscalls/mincore/mincore01.c.rej

I applied the patch manually and the three remaining test cases passed
on my system, however I think that test 3 is still invalid as it might
provide an "unexpected pass" depending on exactly what memory is being
used at the time of execution.

Tested on 2.6.16.27.

  -- Bruce

P.S.  Why is the list not configured with a Reply-To: to the list?

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to