rev-parse tests: don't ignore "git reflog" exit code
Amend a test added inmaint9c46c054ae(rev-parse: tests git rev-parse --verify master@{n}, for various n, 2010-08-24) so that we'll stop ignoring the exit code of "git reflog" by having it on the left-hand-side of a pipe. Because of this I'd marked this test as passing under SANITIZE=leak inf442c94638(leak tests: mark some rev-parse tests as passing with SANITIZE=leak, 2021-10-31). As all of it except this specific test will now pass, let's skip it under the !SANITIZE_LEAK prerequisite. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
							parent
							
								
									8127a2b1f5
								
							
						
					
					
						commit
						53ce7ccff1
					
				|  | @ -132,8 +132,9 @@ test_expect_success 'use --default' ' | ||||||
| 	test_must_fail git rev-parse --verify --default bar | 	test_must_fail git rev-parse --verify --default bar | ||||||
| ' | ' | ||||||
|  |  | ||||||
| test_expect_success 'main@{n} for various n' ' | test_expect_success !SANITIZE_LEAK 'main@{n} for various n' ' | ||||||
| 	N=$(git reflog | wc -l) && | 	git reflog >out && | ||||||
|  | 	N=$(wc -l <out) && | ||||||
| 	Nm1=$(($N-1)) && | 	Nm1=$(($N-1)) && | ||||||
| 	Np1=$(($N+1)) && | 	Np1=$(($N+1)) && | ||||||
| 	git rev-parse --verify main@{0} && | 	git rev-parse --verify main@{0} && | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Ævar Arnfjörð Bjarmason
						Ævar Arnfjörð Bjarmason