mirror of
				git://git.code.sf.net/p/cdesktopenv/code
				synced 2025-03-09 15:50:02 +00:00 
			
		
		
		
	tests/leaks.sh: increase iterations on Linux
There are one or two leaks that show up intermittently on the Github runners for the 1.0 branch (which is compiled as a release, i.e. no vmalloc). If they're intermittent, they must be false positives due to malloc artefacts. Let's double the number of iterations for the /proc/$$/stat method and see what happens.
This commit is contained in:
		
							parent
							
								
									d9f1fdaa41
								
							
						
					
					
						commit
						31fe1c2890
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -36,7 +36,7 @@ then	N=512			# number of iterations for each test
 | 
			
		|||
	}
 | 
			
		||||
# On Linux, we can use /proc to get byte granularity for vsize (field 23).
 | 
			
		||||
elif	[[ -f /proc/$$/stat && $(uname) == Linux ]]
 | 
			
		||||
then	N=2048			# number of iterations for each test
 | 
			
		||||
then	N=4096			# number of iterations for each test
 | 
			
		||||
	unit=bytes
 | 
			
		||||
	tolerance=$((8*N))	# tolerate 8 bytes per iteration to account for malloc artefacts
 | 
			
		||||
	function getmem
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue