This commit is contained in:
		
							parent
							
								
									e0a177a73f
								
							
						
					
					
						commit
						72cc558a7a
					
				
					 1 changed files with 0 additions and 12 deletions
				
			
		| 
						 | 
				
			
			@ -12,8 +12,6 @@ using lt::test::expect_le;
 | 
			
		|||
// <1us error margin is tested manually in release builds and it works fine.
 | 
			
		||||
constexpr auto max_error_margin = std::chrono::milliseconds { 1 };
 | 
			
		||||
 | 
			
		||||
volatile int *volatile global_leak {};
 | 
			
		||||
 | 
			
		||||
lt::test::Suite raii = [] {
 | 
			
		||||
	using std::chrono::microseconds;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -22,13 +20,6 @@ lt::test::Suite raii = [] {
 | 
			
		|||
	};
 | 
			
		||||
 | 
			
		||||
	lt::test::Case { "unhappy path throws" } = [] {
 | 
			
		||||
		global_leak = new int(42); // Allocated memory, never freed
 | 
			
		||||
		global_leak = new int(42); // Allocated memory, never freed
 | 
			
		||||
		global_leak = new int(42); // Allocated memory, never freed
 | 
			
		||||
		global_leak = new int(42); // Allocated memory, never freed
 | 
			
		||||
		global_leak = new int(42); // Allocated memory, never freed
 | 
			
		||||
		global_leak = new int(42); // Allocated memory, never freed
 | 
			
		||||
		global_leak = new int(42); // Allocated memory, never freed
 | 
			
		||||
	};
 | 
			
		||||
 | 
			
		||||
	lt::test::Case { "plenty" } = [] {
 | 
			
		||||
| 
						 | 
				
			
			@ -37,9 +28,6 @@ lt::test::Suite raii = [] {
 | 
			
		|||
			Timer {};
 | 
			
		||||
		}
 | 
			
		||||
	};
 | 
			
		||||
 | 
			
		||||
	global_leak = new int(42); // Allocated memory, never freed
 | 
			
		||||
	std::cout << "Hello, Valgrind!" << *global_leak << std::endl;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
lt::test::Suite reset_and_elapsed_time = [] {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue