diff options
author | Matheus Izvekov <mizvekov@gmail.com> | 2010-01-18 04:57:17 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-18 04:57:17 +0100 |
commit | d4a7728dc3b37e2956034f18fc26c04bc0aa2b0e (patch) | |
tree | b08fde45be76ab4afb1c9af5df1177007c5b111e /testsuite/diff.tests | |
parent | f3fc9ac166d2413d331e3189a132a693608695ba (diff) | |
download | busybox-w32-d4a7728dc3b37e2956034f18fc26c04bc0aa2b0e.tar.gz busybox-w32-d4a7728dc3b37e2956034f18fc26c04bc0aa2b0e.tar.bz2 busybox-w32-d4a7728dc3b37e2956034f18fc26c04bc0aa2b0e.zip |
diff: rewrite. much smaller and more correct
function old new delta
diffreg 1815 3156 +1341
diff_main 860 1194 +334
read_token - 161 +161
skip_dir - 44 +44
seek_ft - 31 +31
fetch 362 392 +30
line_compar - 21 +21
add_to_dirlist 65 61 -4
print_only 16 - -16
skipline 51 - -51
newcand 85 - -85
asciifile 89 - -89
print_status 178 73 -105
make_temp 148 - -148
files_differ 168 - -168
get_recursive_dirlist 182 - -182
sort 226 - -226
prepare 283 - -283
change 283 - -283
do_diff 416 - -416
dump_unified_vec 457 - -457
check 1512 595 -917
------------------------------------------------------------------------------
(add/remove: 4/12 grow/shrink: 3/3 up/down: 1962/-3430) Total: -1468 bytes
Signed-off-by: Matheus Izvekov <mizvekov@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/diff.tests')
-rwxr-xr-x | testsuite/diff.tests | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/testsuite/diff.tests b/testsuite/diff.tests index 06bf163d0..f7bde2f5b 100755 --- a/testsuite/diff.tests +++ b/testsuite/diff.tests | |||
@@ -44,21 +44,18 @@ testing "diff of stdin, twice" \ | |||
44 | "" \ | 44 | "" \ |
45 | "stdin" | 45 | "stdin" |
46 | 46 | ||
47 | test x"$SKIP_KNOWN_BUGS" = x"" && \ | ||
48 | testing "diff -b treats EOF as whitespace" \ | 47 | testing "diff -b treats EOF as whitespace" \ |
49 | 'diff -ub - input; echo $?' \ | 48 | 'diff -ub - input; echo $?' \ |
50 | "0\n" \ | 49 | "0\n" \ |
51 | "abc" \ | 50 | "abc" \ |
52 | "abc " | 51 | "abc " |
53 | 52 | ||
54 | test x"$SKIP_KNOWN_BUGS" = x"" && \ | ||
55 | testing "diff -b treats all spaces as equal" \ | 53 | testing "diff -b treats all spaces as equal" \ |
56 | 'diff -ub - input; echo $?' \ | 54 | 'diff -ub - input; echo $?' \ |
57 | "0\n" \ | 55 | "0\n" \ |
58 | "a \t c\n" \ | 56 | "a \t c\n" \ |
59 | "a\t \tc\n" | 57 | "a\t \tc\n" |
60 | 58 | ||
61 | test x"$SKIP_KNOWN_BUGS" = x"" && \ | ||
62 | testing "diff always takes context from old file" \ | 59 | testing "diff always takes context from old file" \ |
63 | "diff -ub - input | $TRIM_TAB" \ | 60 | "diff -ub - input | $TRIM_TAB" \ |
64 | "\ | 61 | "\ |