mirror of
				https://github.com/tiagovignatti/intel-gpu-tools.git
				synced 2025-11-03 19:47:15 +00:00 
			
		
		
		
	tests/drv_suspend: Replace "&> /dev/null" with "> /dev/null 2>&1"
Some shells do not understand "&>". For instance, my Ubuntu 12.04 machine has /bin/sh pointing to dash, which makes a mess out of "&>" (to the point that the helper processes cannot be killed). Reviewed-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Oscar Mateo <oscar.mateo@intel.com> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
		
							parent
							
								
									b76a411c86
								
							
						
					
					
						commit
						4cc506f5ea
					
				@ -106,7 +106,7 @@ test_debugfs_reader(void)
 | 
			
		||||
		static char tmp[1024];
 | 
			
		||||
 | 
			
		||||
		snprintf(tmp, sizeof(tmp) - 1,
 | 
			
		||||
			 "while true; do find %s/%i/ -type f | xargs cat &> /dev/null; done",
 | 
			
		||||
			 "while true; do find %s/%i/ -type f | xargs cat > /dev/null 2>&1; done",
 | 
			
		||||
			 dfs_base, drm_get_card());
 | 
			
		||||
		assert(execl("/bin/sh", "sh", "-c", tmp, (char *) NULL) != -1);
 | 
			
		||||
	}
 | 
			
		||||
@ -131,7 +131,7 @@ test_sysfs_reader(void)
 | 
			
		||||
		static char tmp[1024];
 | 
			
		||||
 | 
			
		||||
		snprintf(tmp, sizeof(tmp) - 1,
 | 
			
		||||
			 "while true; do find %s%i*/ -type f | xargs cat &> /dev/null; done",
 | 
			
		||||
			 "while true; do find %s%i*/ -type f | xargs cat > /dev/null 2>&1; done",
 | 
			
		||||
			 dfs_base, drm_get_card());
 | 
			
		||||
		assert(execl("/bin/sh", "sh", "-c", tmp, (char *) NULL) != -1);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user