diff options
author | Denys Vlasenko | 2015-01-11 16:41:54 +0100 |
---|---|---|
committer | Denys Vlasenko | 2015-01-11 16:41:54 +0100 |
commit | 39f017293a047ac1063c84263d4d855b86c62ba1 (patch) | |
tree | 688381313ce2ba8db50ee58e8d5007462fa9e9c4 /testsuite | |
parent | 70f4320b40b7af83525cebabab2bc437a22c41d2 (diff) | |
download | busybox-39f017293a047ac1063c84263d4d855b86c62ba1.zip busybox-39f017293a047ac1063c84263d4d855b86c62ba1.tar.gz |
diff: fix a bug in diffing against stdin. Closes 7784
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/diff.tests | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/diff.tests b/testsuite/diff.tests index 6de4648..84d8538 100755 --- a/testsuite/diff.tests +++ b/testsuite/diff.tests @@ -44,6 +44,17 @@ testing "diff of stdin, twice" \ "" \ "stdin" +testing "diff of empty file against stdin" \ + "diff -u - input | $TRIM_TAB" \ +"\ +--- - ++++ input +@@ -1 +0,0 @@ +-a +" \ + "" \ + "a\n" + testing "diff of empty file against nonempty one" \ "diff -u - input | $TRIM_TAB" \ "\ |