summaryrefslogtreecommitdiffstats
path: root/patches/01_corrupt-reject-files-test-portability.patch
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-10-13 14:53:07 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-10-13 14:53:07 (EDT)
commit541fb031bf6c72a23bf1c8402ce044753126333c (patch)
tree676c4d71f0b047f62e7f442e2ce417e1cc7b0a99 /patches/01_corrupt-reject-files-test-portability.patch
parentfa70aef7c61307d442cfb7c5769e30df8b54867a (diff)
Add patches to fix tests on BusyBox
Diffstat (limited to 'patches/01_corrupt-reject-files-test-portability.patch')
-rw-r--r--patches/01_corrupt-reject-files-test-portability.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/patches/01_corrupt-reject-files-test-portability.patch b/patches/01_corrupt-reject-files-test-portability.patch
new file mode 100644
index 0000000..b8bebc9
--- /dev/null
+++ b/patches/01_corrupt-reject-files-test-portability.patch
@@ -0,0 +1,15 @@
+Author: "P. J. McDermott" <pj@pehjota.net>
+Subject: tests/corrupt-reject-files: Use "sed" instead of "cat -E"
+
+diff -Naur src.orig/tests/corrupt-reject-files src/tests/corrupt-reject-files
+--- src.orig/tests/corrupt-reject-files 2012-04-06 06:57:37.000000000 -0400
++++ src/tests/corrupt-reject-files 2014-10-13 14:27:29.493964816 -0400
+@@ -46,7 +46,7 @@
+ Status: 1
+ EOF
+
+-check 'cat -ve a.rej' <<EOF
++check 'sed "s/\$/\$/" a.rej' <<EOF
+ *** a$
+ --- b$
+ ***************$