Skip to contentSkip to conversation

munmap() don't check sysctl_max_mapcount

PATCH Cyril Hrubis 1 participant 1 message Dec 6, 2010 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 1006961573.2311291438423847.JavaMail.root@zmail06.collab.prod.int.phx2.redhat.com

A message that is not in the archive (sent off-list or not yet received): 1995606888.2331291438618074.JavaMail.root@zmail06.collab.prod.int.phx2.redhat.com

#2 lore raw

Hi!

Quoted 6 lines
Quoted 2 lines

Also no need to check return value from check() which always returns zero.

The reason to use TEST() is to take advantages of standard LTP options like,

-c n Run n copies concurrently
-I x Execute test for x seconds

If you look into the include/usctest.h the TEST() macro just saves return value and errno. The -c -I options are implemented elsewhere. The -c is done by TEST_PAUSE in setup() and the -I is done by the TEST_LOOPING() (and is broken anyway). I would just remove the TEST() macro and cange the check() to void.

Quoted 4 lines
Quoted 1 line

Do you need to create temporary directory for testing pthreads?

No, They were copied from the standard LTP test template. I was under the impression that some of internal LTP things need those. If not, I can remove them.

No it just creates unique directory and changes CWD to it.

Signature · 13 lines
Cyril Hrubis
[email protected]

------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list