[Bug 8196] diff fifo1 fifo2 always returns 0
bugzilla at busybox.net
bugzilla at busybox.net
Sat Jul 4 14:52:20 UTC 2015
https://bugs.busybox.net/show_bug.cgi?id=8196
michael fox <415fox at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from michael fox <415fox at gmail.com> 2015-07-04 14:52:20 UTC ---
I wanted to work on this but some nice person me to it. :( Confirmed fixed in
master branch. Here's some added tests if anyone wants them.
diff --git a/testsuite/diff.tests b/testsuite/diff.tests
index 6de4648..fdde7cd 100755
--- a/testsuite/diff.tests
+++ b/testsuite/diff.tests
@@ -214,4 +214,35 @@ SKIP=
# clean up
rm -rf diff1 diff2
+mkfifo fifo1 fifo2
+echo qwe >fifo1 &
+echo rty >fifo2 &
+testing "diff of two fifos" \
+ "diff -u fifo1 fifo2 | $TRIM_TAB;" \
+"\
+--- fifo1
++++ fifo2
+@@ -1 +1 @@
+-qwe
++rty
+" \
+ "" ""
+SKIP=
+
+echo qwe >fifo1 &
+testing "diff fifo and stdin" \
+ "diff -u fifo1 - | $TRIM_TAB;" \
+"\
+--- fifo1
++++ -
+@@ -1 +1 @@
+-qwe
++rty
+" \
+ "" "rty\n"
+SKIP=
+
+# clean up
+rm -rf fifo1 fifo2
+
exit $FAILCOUNT
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list