mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	Adds line numbering in errors for test helpers
Adds to the 'generate_code.pl' tool, support to insert line numbers before test suite helper code.
This commit is contained in:
		
							parent
							
								
									31a6c49139
								
							
						
					
					
						commit
						37f2620db6
					
				@ -90,6 +90,11 @@ my @test_cases_lines = split/^/,  <TEST_CASES>;
 | 
			
		||||
my $test_cases;
 | 
			
		||||
my $index = 2;
 | 
			
		||||
for my $line (@test_cases_lines) {
 | 
			
		||||
    if ($line =~ /^\/\* BEGIN_SUITE_HELPERS .*\*\//)
 | 
			
		||||
    {
 | 
			
		||||
        $line = $line."#line $index \"$test_case_file\"\n";
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if ($line =~ /^\/\* BEGIN_CASE .*\*\//)
 | 
			
		||||
    {
 | 
			
		||||
        $line = $line."#line $index \"$test_case_file\"\n";
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user