aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2022-02-09 09:03:18 +0000
committerRon Yorston <rmy@pobox.com>2022-02-09 09:05:39 +0000
commit492d0a7492a57fe8f02c766e25960b0ce0d88759 (patch)
tree4f5764a5c2250c031ea05e9aeacbb40d7971f493 /testsuite
parent4734416a21312488a5099a297907783bee4ccc22 (diff)
parentcaa9c4f707b661cf398f2c2d66f54f5b0d8adfe2 (diff)
downloadbusybox-w32-492d0a7492a57fe8f02c766e25960b0ce0d88759.tar.gz
busybox-w32-492d0a7492a57fe8f02c766e25960b0ce0d88759.tar.bz2
busybox-w32-492d0a7492a57fe8f02c766e25960b0ce0d88759.zip
Merge busybox into merge
Fix conflicts in reset and ash. Redefine the new safe_read_key() as a reference to read_key(). Disable SHA256_HWACCEL.
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/sed.tests15
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/sed.tests b/testsuite/sed.tests
index e62b839f7..626542e33 100755
--- a/testsuite/sed.tests
+++ b/testsuite/sed.tests
@@ -324,6 +324,21 @@ testing "sed zero chars match/replace logic must not falsely trigger here 2" \
324 "sed 's/ *$/_/g'" \ 324 "sed 's/ *$/_/g'" \
325 "qwerty_\n" "" "qwerty\n" 325 "qwerty_\n" "" "qwerty\n"
326 326
327# the pattern here is interpreted as "9+", not as "9\+"
328testing "sed special char as s/// delimiter, in pattern" \
329 "sed 's+9\++X+'" \
330 "X8=17\n" "" "9+8=17\n"
331
332# Matching GNU sed 4.8:
333# in replacement string, "\&" remains "\&", not interpreted as "&"
334testing "sed special char as s/// delimiter, in replacement 1" \
335 "sed 's&9&X\&&'" \
336 "X&+8=17\n" "" "9+8=17\n"
337# in replacement string, "\1" is interpreted as "1"
338testing "sed special char as s/// delimiter, in replacement 2" \
339 "sed 's1\(9\)1X\11'" \
340 "X1+8=17\n" "" "9+8=17\n"
341
327testing "sed /\$_in_regex/ should not match newlines, only end-of-line" \ 342testing "sed /\$_in_regex/ should not match newlines, only end-of-line" \
328 "sed ': testcont; /\\\\$/{ =; N; b testcont }'" \ 343 "sed ': testcont; /\\\\$/{ =; N; b testcont }'" \
329 "\ 344 "\