cocci: apply "pending" index-compatibility to "t/helper/*.c"
[git/debian.git] / t / t0065-strcmp-offset.sh
blob94e34c83ed96d86b096385610565a3179f7a9f1c
1 #!/bin/sh
3 test_description='Test strcmp_offset functionality'
5 TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
8 while read s1 s2 expect
9 do
10 test_expect_success "strcmp_offset($s1, $s2)" '
11 echo "$expect" >expect &&
12 test-tool strcmp-offset "$s1" "$s2" >actual &&
13 test_cmp expect actual
15 done <<-EOF
16 abc abc 0 3
17 abc def -1 0
18 abc abz -1 2
19 abc abcdef -1 3
20 EOF
22 test_done