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, 1 Jan 2011, Julio Merino wrote:

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.

No problem.

Thanks for quick reply.


--
Julio Merino

!DSPAM:4d1fa9122341854415861!




-------------------------------------------------------------------------
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:       |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com    |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer |                          | pgoyette at netbsd.org  |
-------------------------------------------------------------------------


Home | Main Index | Thread Index | Old Index