get_arch_from_host_test.c [plain text]
#include "test_main.h"
#include "stuff/arch.h"
static void test_get_arch_from_host(void)
{
struct arch_flag family;
struct arch_flag specific;
int res = get_arch_from_host(&family, &specific);
check_nonzero("get_arch_from_host result", res);
check_nonzero("family cputype", family.cputype);
check_nonzero("specific cputype", specific.cputype);
}
static int test_main(void)
{
int err = 0;
if (!err) err = test_add("test get_arch_from_host", test_get_arch_from_host);
return err;
}