mirror of
				https://gitlab.freedesktop.org/wayland/wayland.git
				synced 2025-11-03 09:01:42 -05:00 
			
		
		
		
	tests: Fix warning in memory leak assert
This commit is contained in:
		
							parent
							
								
									ac06144cc9
								
							
						
					
					
						commit
						d8b66a00f4
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -69,7 +69,7 @@ run_test(const struct test *t)
 | 
				
			||||||
	int cur_alloc = num_alloc;
 | 
						int cur_alloc = num_alloc;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	t->run();
 | 
						t->run();
 | 
				
			||||||
	assert(("memory leak detected in test.", cur_alloc == num_alloc));
 | 
						assert(cur_alloc == num_alloc && "memory leak detected in test.");
 | 
				
			||||||
	exit(EXIT_SUCCESS);
 | 
						exit(EXIT_SUCCESS);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue