projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix tests to run on OpenBSD
[mmh]
/
test
/
tests
/
show
/
test-longlines
diff --git
a/test/tests/show/test-longlines
b/test/tests/show/test-longlines
index
138c724
..
c15c1cb
100644
(file)
--- a/
test/tests/show/test-longlines
+++ b/
test/tests/show/test-longlines
@@
-13,13
+13,11
@@
actual=$MH_TEST_DIR/$$.actual
genlongsubject() {
len="${1:-998}"
awk -v len="$len" 'BEGIN {
genlongsubject() {
len="${1:-998}"
awk -v len="$len" 'BEGIN {
- prefix = "Subject: " len
+ prefix = "Subject: " len " "
while (i++<len) {
s = s "x"
}
while (i++<len) {
s = s "x"
}
- re = ".{" length(prefix) "}."
- sub(re, prefix " ", s)
- print s
+ print prefix substr(s, length(prefix) + 1)
}'
}
}'
}