--- On Tue, 4/7/09, rohit verma <[email protected]> wrote:
> From: rohit verma <[email protected]>
> Subject: [LTP] fork05 test case fails due to optimization
> To: [email protected]
> Date: Tuesday, April 7, 2009, 5:57 PM
> 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 ..
>
This is definitely a case. I can reproduce it on Fedora 10, so I have
created a bug of it, and copied the author Ulrich Drepper,
https://bugzilla.redhat.com/show_bug.cgi?id=495296
CAI Qian
> 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
>
------------------------------------------------------------------------------
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