mirror of
				https://github.com/tiagovignatti/intel-gpu-tools.git
				synced 2025-11-04 12:07:12 +00:00 
			
		
		
		
	build: Make sure asserts are enabled for tests
Tests depend on assertions being enabled since they can, and do, contain actual test steps. They are also mandatory for ensuring sane test case behaviour. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
		
							parent
							
								
									aee0dcb1ec
								
							
						
					
					
						commit
						b92b397d5e
					
				
							
								
								
									
										3
									
								
								lib/check-ndebug.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								lib/check-ndebug.h
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,3 @@
 | 
			
		||||
#ifdef NDEBUG
 | 
			
		||||
#error "Testsuite needs its asserts!"
 | 
			
		||||
#endif
 | 
			
		||||
@ -40,7 +40,7 @@ define add_test
 | 
			
		||||
       $(LIBPCIACCESS_PATH)/include
 | 
			
		||||
 | 
			
		||||
    LOCAL_CFLAGS += -DHAVE_STRUCT_SYSINFO_TOTALRAM
 | 
			
		||||
    LOCAL_CFLAGS += -DANDROID
 | 
			
		||||
    LOCAL_CFLAGS += -DANDROID -UNDEBUG -include "check-ndebug.h"
 | 
			
		||||
    LOCAL_CFLAGS += -std=c99
 | 
			
		||||
    # FIXME: drop once Bionic correctly annotates "noreturn" on pthread_exit
 | 
			
		||||
    LOCAL_CFLAGS += -Wno-error=return-type
 | 
			
		||||
 | 
			
		||||
@ -23,6 +23,7 @@ CLEANFILES = $(EXTRA_PROGRAMS)
 | 
			
		||||
AM_CFLAGS = $(DRM_CFLAGS) $(CWARNFLAGS) \
 | 
			
		||||
	-I$(srcdir)/.. \
 | 
			
		||||
	-I$(srcdir)/../lib \
 | 
			
		||||
	-include "check-ndebug.h" \
 | 
			
		||||
	-DIGT_DATADIR=\""$(abs_srcdir)"\" \
 | 
			
		||||
	$(NULL)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user