t5303: fix printf format string for portability
printf "\x01" is bad; write printf "\001" for portability. Testing with dash is a good way to find this kind of POSIX.1 violation breakages. Signed-off-by: Junio C Hamano <gitster@pobox.com>maint
							parent
							
								
									8c1f6f6c57
								
							
						
					
					
						commit
						a2d2c478f3
					
				|  | @ -234,7 +234,7 @@ test_expect_success \ | |||
|     'corruption #1 in delta base reference of first delta (OBJ_OFS_DELTA)' \ | ||||
|     'create_new_pack --delta-base-offset && | ||||
|      git prune-packed && | ||||
|      tr "\000" "\001" </dev/zero | do_corrupt_object $blob_2 2 && | ||||
|      printf "\001" | do_corrupt_object $blob_2 2 && | ||||
|      git cat-file blob $blob_1 > /dev/null && | ||||
|      test_must_fail git cat-file blob $blob_2 > /dev/null && | ||||
|      test_must_fail git cat-file blob $blob_3 > /dev/null' | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Junio C Hamano
						Junio C Hamano