mirror of
				https://github.com/tiagovignatti/intel-gpu-tools.git
				synced 2025-11-04 03:58:27 +00:00 
			
		
		
		
	lib/igt_core: Add igt_assert_neq_*() variants
Similar to igt_assert_eq_*(), add variants for non-equality of types other than int. Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
		
							parent
							
								
									c9112dca9e
								
							
						
					
					
						commit
						715a17bb35
					
				@ -453,6 +453,33 @@ void igt_exit(void) __attribute__((noreturn));
 | 
			
		||||
 */
 | 
			
		||||
#define igt_assert_neq(n1, n2) igt_assert_cmpint(n1, !=, ==, n2)
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * igt_assert_neq_u32:
 | 
			
		||||
 * @n1: first integer
 | 
			
		||||
 * @n2: second integer
 | 
			
		||||
 *
 | 
			
		||||
 * Like igt_assert_neq(), but for uint32_t.
 | 
			
		||||
 */
 | 
			
		||||
#define igt_assert_neq_u32(n1, n2) igt_assert_cmpuint(n1, !=, ==, n2)
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * igt_assert_neq_u64:
 | 
			
		||||
 * @n1: first integer
 | 
			
		||||
 * @n2: second integer
 | 
			
		||||
 *
 | 
			
		||||
 * Like igt_assert_neq_u32(), but for uint64_t.
 | 
			
		||||
 */
 | 
			
		||||
#define igt_assert_neq_u64(n1, n2) igt_assert_cmpu64(n1, !=, ==, n2)
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * igt_assert_neq_double:
 | 
			
		||||
 * @n1: first double
 | 
			
		||||
 * @n2: second double
 | 
			
		||||
 *
 | 
			
		||||
 * Like igt_assert_neq(), but for doubles.
 | 
			
		||||
 */
 | 
			
		||||
#define igt_assert_neq_double(n1, n2) igt_assert_cmpdouble(n1, !=, ==, n2)
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * igt_assert_lte:
 | 
			
		||||
 * @n1: first integer
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user