aboutsummaryrefslogtreecommitdiff
path: root/testsuite/awk.tests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/awk.tests')
-rwxr-xr-xtestsuite/awk.tests14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/awk.tests b/testsuite/awk.tests
index be25f6696..af9ed5359 100755
--- a/testsuite/awk.tests
+++ b/testsuite/awk.tests
@@ -480,6 +480,20 @@ testing 'awk backslash+newline eaten with no trace' \
480 "Hello world\n" \ 480 "Hello world\n" \
481 '' '' 481 '' ''
482 482
483optional PLATFORM_MINGW32
484testing 'awk match line ending' \
485 "awk '/world$/'" \
486 "world\n" \
487 "" \
488 "hello\r\nworld\r\n"
489
490testing 'awk backslash+CRLF eaten with no trace' \
491 "awk -f -" \
492 "Hello world\n" \
493 '' \
494 'BEGIN { printf "Hello\\\r\n world\\n" }\n'
495SKIP=
496
483# User-supplied bug (SEGV) example, was causing use-after-realloc 497# User-supplied bug (SEGV) example, was causing use-after-realloc
484testing 'awk assign while assign' \ 498testing 'awk assign while assign' \
485 "awk '\$5=\$\$5=\$0'; echo \$?" \ 499 "awk '\$5=\$\$5=\$0'; echo \$?" \