diff options
Diffstat (limited to 'testsuite/awk.tests')
-rwxr-xr-x | testsuite/awk.tests | 14 |
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 | ||
483 | optional PLATFORM_MINGW32 | ||
484 | testing 'awk match line ending' \ | ||
485 | "awk '/world$/'" \ | ||
486 | "world\n" \ | ||
487 | "" \ | ||
488 | "hello\r\nworld\r\n" | ||
489 | |||
490 | testing 'awk backslash+CRLF eaten with no trace' \ | ||
491 | "awk -f -" \ | ||
492 | "Hello world\n" \ | ||
493 | '' \ | ||
494 | 'BEGIN { printf "Hello\\\r\n world\\n" }\n' | ||
495 | SKIP= | ||
496 | |||
483 | # User-supplied bug (SEGV) example, was causing use-after-realloc | 497 | # User-supplied bug (SEGV) example, was causing use-after-realloc |
484 | testing 'awk assign while assign' \ | 498 | testing 'awk assign while assign' \ |
485 | "awk '\$5=\$\$5=\$0'; echo \$?" \ | 499 | "awk '\$5=\$\$5=\$0'; echo \$?" \ |