[LTP] [PATCH] syscalls/profil01: disable this test for uClibc

Cyril Hrubis chrubis@suse.cz
Wed Mar 9 13:00:39 CET 2016


Hi!
> The problem is that an environment variable must be defined to exclude
> tests for uClibc in Makefiles. And tests must be built by this way (as
> it done in uClinux):
>
> make UCLIBC=1

Yes. It's the same for UCLINUX. You have to set UCLINUX=1 (which causes
env_post.mk to add -DUCLINUX and -D__UCLIBC__). But it's the UCLINUX
variable that is used in the Makefiles.

> Exclusion may be implemented in "testcases/kernel/syscalls/Makefile" like this:
> 
> ifeq ($(__UCLIBC__),1)
> FILTER_OUT_DIRS	+= profil
> endif

Why the double underscores here? I would rather go for simple $(UCLIBC)
hre.

> So UCLIBC variable must be set explicitly. Is it a right way?

Yes.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list