summaryrefslogtreecommitdiff
path: root/system/coreutils/tests-cp-proc-short-read.patch
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2022-12-26 14:55:08 +0000
committerZach van Rijn <me@zv.io>2022-12-26 14:55:47 +0000
commite9ea939bc00ecf49a7bffd4d2253cba2c6726210 (patch)
tree961374e2e4bb51be6d9eb6c3f02c5d338b81cd33 /system/coreutils/tests-cp-proc-short-read.patch
parent43876dee9f4316dea1f9a2e0df6e9b0bffb226d2 (diff)
downloadpackages-e9ea939bc00ecf49a7bffd4d2253cba2c6726210.tar.gz
packages-e9ea939bc00ecf49a7bffd4d2253cba2c6726210.tar.bz2
packages-e9ea939bc00ecf49a7bffd4d2253cba2c6726210.tar.xz
packages-e9ea939bc00ecf49a7bffd4d2253cba2c6726210.zip
system/coreutils: patch test assumption. fixes #943.
Diffstat (limited to 'system/coreutils/tests-cp-proc-short-read.patch')
-rw-r--r--system/coreutils/tests-cp-proc-short-read.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/system/coreutils/tests-cp-proc-short-read.patch b/system/coreutils/tests-cp-proc-short-read.patch
new file mode 100644
index 000000000..33f0417d8
--- /dev/null
+++ b/system/coreutils/tests-cp-proc-short-read.patch
@@ -0,0 +1,15 @@
+diff --git a/tests/cp/proc-short-read.sh b/tests/cp/proc-short-read.sh
+index bedb08e06..89dba8d3d 100755
+--- a/tests/cp/proc-short-read.sh
++++ b/tests/cp/proc-short-read.sh
+@@ -28,8 +28,8 @@ cp $proc_large 1 || fail=1
+ cat $proc_large > 2 || fail=1
+
+ # adjust varying parts
+-sed '/MHz/d; /bogomips/d;' 1 > proc.cp || framework_failure_
+-sed '/MHz/d; /bogomips/d;' 2 > proc.cat || framework_failure_
++sed '/MHz/d; /[Bb][Oo][Gg][Oo][Mm][Ii][Pp][Ss]/d;' 1 > proc.cp || framework_failure_
++sed '/MHz/d; /[Bb][Oo][Gg][Oo][Mm][Ii][Pp][Ss]/d;' 2 > proc.cat || framework_failure_
+
+ compare proc.cp proc.cat || fail=1
+