Bare tests are standalone assembly tests that don't require linking to any libc and hence can be built with kernel only compilers. The libc tests need a compiler capable of building properly linked userspace binaries. As we don't have such a cross compiler at the moment we won't be building those tests. Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
		
			
				
	
	
		
			19 lines
		
	
	
		
			411 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			411 B
		
	
	
	
		
			C
		
	
	
	
	
	
#include <unistd.h>
 | 
						|
 | 
						|
#define STRINGIFY(x) #x
 | 
						|
#define TOSTRING(x) STRINGIFY(x)
 | 
						|
 | 
						|
#define always_inline inline __attribute__((always_inline))
 | 
						|
 | 
						|
#define CURRENT_LOCATION __FILE__ ":" TOSTRING(__LINE__)
 | 
						|
 | 
						|
#define err()                         \
 | 
						|
{                                     \
 | 
						|
  _fail("at " CURRENT_LOCATION " ");  \
 | 
						|
}
 | 
						|
 | 
						|
#define mb() asm volatile ("" : : : "memory")
 | 
						|
 | 
						|
void pass(void);
 | 
						|
void _fail(char *reason);
 |