Improved regexp test for pmap
The change in pmap is necessary if it happens that the whole output of pmap -X or -XX has been done before the second regexp is matched. Since the matching is greedy, it is matched by the full output, so that nothing is left for the third regexp and the test fails with FAIL: extra extended output (footer). Reference: http://comments.gmane.org/gmane.linux.lfs.devel/13961 Signed-off-by: Craig Small <csmall@enc.com.au>
This commit is contained in:
		
				
					committed by
					
						 Craig Small
						Craig Small
					
				
			
			
				
	
			
			
			
						parent
						
							7888f6a679
						
					
				
				
					commit
					1b63eb8671
				
			| @@ -52,11 +52,11 @@ expect_table $test $pmap_ext_header $pmap_ext_items $pmap_ext_footer | ||||
| # -X and -XX have no real format as its dependent on smaps | ||||
| set test "pmap extra extended output" | ||||
| spawn $pmap -X $mypid | ||||
| expect_table $test $pmap_generic_header ".+" "\[= \]+" | ||||
| expect_table $test $pmap_generic_header "\[^=\]+" "\[= \]+" | ||||
|  | ||||
| set test "pmap double extra extended output" | ||||
| spawn $pmap -XX $mypid | ||||
| expect_table $test $pmap_generic_header ".+" "\[= \]+" | ||||
| expect_table $test $pmap_generic_header "\[^=\]+" "\[= \]+" | ||||
|  | ||||
| set test "pmap X with unreachable process" | ||||
| spawn $pmap -X 1 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user