mirror of
				https://gitlab.freedesktop.org/wayland/wayland.git
				synced 2025-11-03 09:01:42 -05:00 
			
		
		
		
	resources-test: assert non-NULL return values
Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
This commit is contained in:
		
							parent
							
								
									22a4a95873
								
							
						
					
					
						commit
						c0218227fe
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -156,6 +156,7 @@ TEST(create_resource_with_same_id)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* this one should replace the old one */
 | 
						/* this one should replace the old one */
 | 
				
			||||||
	res2 = wl_resource_create(client, &wl_display_interface, 1, id);
 | 
						res2 = wl_resource_create(client, &wl_display_interface, 1, id);
 | 
				
			||||||
 | 
						assert(res2 != NULL);
 | 
				
			||||||
	assert(wl_client_get_object(client, id) == res2);
 | 
						assert(wl_client_get_object(client, id) == res2);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	wl_resource_destroy(res2);
 | 
						wl_resource_destroy(res2);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue