ATF-devel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Conditional tests based on ${MACHINE} and ${MACHINE_ARCH}



On Sat, Jan 1, 2011 at 11:13 PM, Paul Goyette <paul%whooppee.com@localhost> 
wrote:
> Here's the code I'm using:
>
>        static void
>        run_test(const atf_tc_t *tc, struct ldexp_test *table)
>        {
>        ...
>                const char *arch;
>
>                arch = atf_tc_get_config_var(tc, "atf_arch");

Oh, I'm sorry for misguiding you.  Forgot that the atf_* variables are
atf-wide configuration variables and, as such, they are not propagated
as test case-specific configuration variables.  (Yup, it is confusing
and I'm on the way of redoing this.)

Use atf_config_get("atf_arch") instead.

-- 
Julio Merino


Home | Main Index | Thread Index | Old Index