]> code.ossystems Code Review - openembedded-core.git/commit
ltp: fix an incorrect macro checking
authorJackie Huang <jackie.huang@windriver.com>
Sat, 19 Nov 2016 02:11:00 +0000 (10:11 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 19 Apr 2017 09:16:24 +0000 (10:16 +0100)
commitca798705b3b8fa9b2f6467970e9bda9d9433986c
tree13dde14fcc3027762da911a64bc834c811d36297
parentb0e5c8f6a5041010347f6b70e39e41886829d928
ltp: fix an incorrect macro checking

The previous patch added a check but incorrectly
change the elif to if, then it always return 0
for cpuid if the machine is not __i386__

getcpu01    1  TFAIL  :  getcpu01.c:140: getcpu() returned wrong value expected cpuid:7, returned value cpuid: 0

After this fix:
getcpu01    1  TPASS  :  getcpu() returned proper cpuid:7, node id:0

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-extended/ltp/ltp/0008-Check-if-__GLIBC_PREREQ-is-defined-before-using-it.patch