2 * Copyright 2013, Michael Ellerman, IBM Corp.
3 * Licensed under GPLv2.
6 #ifndef _SELFTESTS_POWERPC_UTILS_H
7 #define _SELFTESTS_POWERPC_UTILS_H
12 /* Avoid headaches with PRI?64 - just use %ll? always */
13 typedef unsigned long long u64;
14 typedef signed long long s64;
16 /* Just for familiarity */
22 int test_harness(int (test_function)(void), char *name);
23 extern void *get_auxv_entry(int type);
25 /* Yes, this is evil */
30 "[FAIL] Test FAILED on line %d\n", __LINE__); \
35 /* The test harness uses this, yes it's gross */
36 #define MAGIC_SKIP_RETURN_VALUE 99
42 "[SKIP] Test skipped on line %d\n", __LINE__); \
43 return MAGIC_SKIP_RETURN_VALUE; \
48 #define str(s) _str(s)
50 #endif /* _SELFTESTS_POWERPC_UTILS_H */