mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	test: handle running without a server
The security context test requires a running server, exit gracefully for now when there is server running, like in the CI.
This commit is contained in:
		
							parent
							
								
									7e9e261fa6
								
							
						
					
					
						commit
						76ce2f77a4
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -103,6 +103,8 @@ static void test_create(void)
 | 
			
		|||
	context = pw_context_new(pw_main_loop_get_loop(loop), NULL, 12);
 | 
			
		||||
	spa_assert_se(context != NULL);
 | 
			
		||||
	core = pw_context_connect(context, NULL, 0);
 | 
			
		||||
	if (core == NULL && errno == EHOSTDOWN)
 | 
			
		||||
		return;
 | 
			
		||||
	spa_assert_se(core != NULL);
 | 
			
		||||
 | 
			
		||||
	spa_zero(info);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue