mirror of
				https://gitlab.freedesktop.org/wayland/wayland.git
				synced 2025-11-03 09:01:42 -05:00 
			
		
		
		
	tests: Don't leave temporary files behind
Signed-off-by: Sven Joachim <svenjoac@gmx.de>
This commit is contained in:
		
							parent
							
								
									7fd3ca049b
								
							
						
					
					
						commit
						15625a5cc7
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -447,6 +447,7 @@ TEST(connection_marshal_demarshal)
 | 
			
		|||
 | 
			
		||||
	data.value.h = mkstemp(f);
 | 
			
		||||
	assert(data.value.h >= 0);
 | 
			
		||||
	unlink(f);
 | 
			
		||||
	marshal_demarshal(&data, (void *) validate_demarshal_h,
 | 
			
		||||
			  8, "h", data.value.h);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -480,6 +481,7 @@ TEST(connection_marshal_alot)
 | 
			
		|||
		strcpy(f, "/tmp/weston-tests-XXXXXX");
 | 
			
		||||
		data.value.h = mkstemp(f);
 | 
			
		||||
		assert(data.value.h >= 0);
 | 
			
		||||
		unlink(f);
 | 
			
		||||
		marshal_demarshal(&data, (void *) validate_demarshal_h,
 | 
			
		||||
				  8, "h", data.value.h);
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue