Hello,

the aiodio_sparse (and dio_sparse) tests use mmaped region of memory backed by 
a file, and populate the pages by writing to them. This can fail, eg. when 
Linux overcommits memory and the newly created pages do not fit; it results in 
the file not being properly deleted. This patch fixes that by trapping signals 
in these test (I used the standard libltp functions for that) and deleting the 
file in a cleanup function.

Sorry that the patch may be little unclean - it was hand-edited. I will do 
something about that if it matters.

Regards
   Jiri Palecek

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

Attachment: trap-signals.patch
Description: Binary data

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to