Han Pingtian <ha...@linux.vnet.ibm.com> wrote on 09/11/2014 07:57:09 AM:

> Han Pingtian <ha...@linux.vnet.ibm.com> 
> 09/11/2014 07:57 AM
> 
> To
> 
> ltp-list@lists.sourceforge.net
> 
> cc
> 
> Subject
> 
> [LTP]  [PATCH] ldd01: using 'ppc' to check powerpc arch
> 
> Hello,
> The ldd01 always failed on some powerpc systems of ours. I have figured
> out a patch. Please take a look. Thanks in advance.
> 
> 
> On some powerpc system, the 'uname -a' doesn't show 'powerpc' but will
> show 'ppc'. So we need using it to check the powerpc arch.
> 
> Signed-off-by: Han Pingtian <ha...@linux.vnet.ibm.com>
> ---
>  testcases/commands/ade/ldd/ldd01 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/testcases/commands/ade/ldd/ldd01 b/testcases/commands/
> ade/ldd/ldd01
> index c60d3ac..569902e 100755
> --- a/testcases/commands/ade/ldd/ldd01
> +++ b/testcases/commands/ade/ldd/ldd01
> @@ -47,7 +47,7 @@ do_setup()
>     mkdir $TCtmp
> 
>     # Check for ppc64 architecture or x86_64 architecture
> -   if uname -a | grep -iq powerpc; then
> +   if uname -a | grep -iq 'ppc\|powerpc'; then
>        file lddfile1.obj | grep 64-bit >/dev/null 2>&1
>        if [ $? -eq 0 ]; then
>           CFLAGS="-m64"
> -- 
> 1.9.3
> 
Verified on PPC machine this fix helps
> 
> 
------------------------------------------------------------------------------
> Want excitement?
> Manually upgrade your production database.
> When you want reliability, choose Perforce
> Perforce version control. Predictably reliable.
> 
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk

> _______________________________________________
> Ltp-list mailing list
> Ltp-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ltp-list
> 
------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to