There is a change in compilation mechanism in LTP from Feb 09 distribution.The previous Make mechanism did not provide any optimization while compiling the fork05 test program and the test used to Pass . However the newer Makefile uses optimization level 2 while compiling, if this file is executed the test case fails ..
With Older Make mechanism cc -Wall -I../../include -g -Wall -I../../../../include -Wall fork05.c -L../../../../lib -lltp -o fork05 With Newer Make mechanism gcc -g -O2 -I../../include -g -Wall -I../../../../include -Wall fork05.c -L../../../../lib -lltp -o fork05 Note: If we compile the program in the same directory(/testcases/kernel/syscalls/fork) ,the optimization flag do not come into picture and the test case passes. The optimization is set by some top level Makefile Regards, Rohit ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
