vcs-svn: read inline data from deltas
[gitweb.git] / t / t9011-svn-da.sh
index 90b6058ab67d38edcd576ec040e1dd3cee2368d0..26a4a3694a8f322e579d7a3678d13e61b077e317 100755 (executable)
@@ -121,4 +121,16 @@ test_expect_success 'preimage view: reject truncated preimage' '
        test_must_fail test-svn-fe -d preimage clear.longread 9
 '
 
+test_expect_success 'inline data' '
+       printf "SVNQ%b%s%b%s" "QQQQ\003" "bar" "QQQQ\001" "x" |
+               q_to_nul >inline.clear &&
+       test-svn-fe -d preimage inline.clear 18 >actual &&
+       test_cmp empty actual
+'
+
+test_expect_success 'reject truncated inline data' '
+       printf "SVNQ%b%s" "QQQQ\003" "b" | q_to_nul >inline.trunc &&
+       test_must_fail test-svn-fe -d preimage inline.trunc 10
+'
+
 test_done