diff options
Diffstat (limited to 'bin/sh/tests/errors')
27 files changed, 0 insertions, 28 deletions
diff --git a/bin/sh/tests/errors/Makefile b/bin/sh/tests/errors/Makefile index 5f8d16d22295..26b1ccbef4ee 100644 --- a/bin/sh/tests/errors/Makefile +++ b/bin/sh/tests/errors/Makefile @@ -1,5 +1,3 @@ -# $FreeBSD$ - PACKAGE= tests TESTSDIR= ${TESTSBASE}/bin/sh/${.CURDIR:T} diff --git a/bin/sh/tests/errors/Makefile.depend b/bin/sh/tests/errors/Makefile.depend index f80275d86ab1..11aba52f82cf 100644 --- a/bin/sh/tests/errors/Makefile.depend +++ b/bin/sh/tests/errors/Makefile.depend @@ -1,4 +1,3 @@ -# $FreeBSD$ # Autogenerated - do NOT edit! DIRDEPS = \ diff --git a/bin/sh/tests/errors/assignment-error1.0 b/bin/sh/tests/errors/assignment-error1.0 index 00eaed9b8671..27f3b06fbc98 100644 --- a/bin/sh/tests/errors/assignment-error1.0 +++ b/bin/sh/tests/errors/assignment-error1.0 @@ -1,4 +1,3 @@ -# $FreeBSD$ IFS=, SPECIAL="break,\ diff --git a/bin/sh/tests/errors/assignment-error2.0 b/bin/sh/tests/errors/assignment-error2.0 index ff4e62995262..d9844b25cdc3 100644 --- a/bin/sh/tests/errors/assignment-error2.0 +++ b/bin/sh/tests/errors/assignment-error2.0 @@ -1,4 +1,3 @@ -# $FreeBSD$ set -e HOME=/ diff --git a/bin/sh/tests/errors/backquote-error1.0 b/bin/sh/tests/errors/backquote-error1.0 index 43e33034af9f..c4bdb6722dc4 100644 --- a/bin/sh/tests/errors/backquote-error1.0 +++ b/bin/sh/tests/errors/backquote-error1.0 @@ -1,4 +1,3 @@ -# $FreeBSD$ echo 'echo `for` echo ".BAD"CODE.' | ${SH} +m -i 2>&1 | grep -q BADCODE && exit 1 exit 0 diff --git a/bin/sh/tests/errors/backquote-error2.0 b/bin/sh/tests/errors/backquote-error2.0 index 5b49e2be17ce..05fcd96bb101 100644 --- a/bin/sh/tests/errors/backquote-error2.0 +++ b/bin/sh/tests/errors/backquote-error2.0 @@ -1,4 +1,3 @@ -# $FreeBSD$ ${SH} -c 'echo `echo .BA"DCODE.` echo ".BAD"CODE.' 2>&1 | grep -q BADCODE && exit 1 diff --git a/bin/sh/tests/errors/bad-binary1.126 b/bin/sh/tests/errors/bad-binary1.126 index d92e9ded5689..76ab2aa5a8fe 100644 --- a/bin/sh/tests/errors/bad-binary1.126 +++ b/bin/sh/tests/errors/bad-binary1.126 @@ -1,4 +1,3 @@ -# $FreeBSD$ # Checking for binary "scripts" without magic number is permitted but not # required by POSIX. However, it is preferable to getting errors like # Syntax error: word unexpected (expecting ")") diff --git a/bin/sh/tests/errors/bad-keyword1.0 b/bin/sh/tests/errors/bad-keyword1.0 index ac0153655f8d..f754e02c122a 100644 --- a/bin/sh/tests/errors/bad-keyword1.0 +++ b/bin/sh/tests/errors/bad-keyword1.0 @@ -1,4 +1,3 @@ -# $FreeBSD$ echo ':; fi' | ${SH} -n 2>/dev/null && exit 1 exit 0 diff --git a/bin/sh/tests/errors/bad-parm-exp1.0 b/bin/sh/tests/errors/bad-parm-exp1.0 index 6e949945f9f3..0cefdac9ea5d 100644 --- a/bin/sh/tests/errors/bad-parm-exp1.0 +++ b/bin/sh/tests/errors/bad-parm-exp1.0 @@ -1,4 +1,3 @@ -# $FreeBSD$ false && { ${} ${foo/} diff --git a/bin/sh/tests/errors/bad-parm-exp2.2 b/bin/sh/tests/errors/bad-parm-exp2.2 index a0826ecf9a8b..1de22a5c20d1 100644 --- a/bin/sh/tests/errors/bad-parm-exp2.2 +++ b/bin/sh/tests/errors/bad-parm-exp2.2 @@ -1,2 +1 @@ -# $FreeBSD$ eval '${}' diff --git a/bin/sh/tests/errors/bad-parm-exp3.2 b/bin/sh/tests/errors/bad-parm-exp3.2 index bb41208f258d..6f7b9347567f 100644 --- a/bin/sh/tests/errors/bad-parm-exp3.2 +++ b/bin/sh/tests/errors/bad-parm-exp3.2 @@ -1,2 +1 @@ -# $FreeBSD$ eval '${foo/}' diff --git a/bin/sh/tests/errors/bad-parm-exp4.2 b/bin/sh/tests/errors/bad-parm-exp4.2 index 2837f9b5be9e..9f4efa88c4b5 100644 --- a/bin/sh/tests/errors/bad-parm-exp4.2 +++ b/bin/sh/tests/errors/bad-parm-exp4.2 @@ -1,2 +1 @@ -# $FreeBSD$ eval '${foo:@abc}' diff --git a/bin/sh/tests/errors/bad-parm-exp5.2 b/bin/sh/tests/errors/bad-parm-exp5.2 index 1ba343bb710d..3c0d10296f6b 100644 --- a/bin/sh/tests/errors/bad-parm-exp5.2 +++ b/bin/sh/tests/errors/bad-parm-exp5.2 @@ -1,2 +1 @@ -# $FreeBSD$ eval '${/}' diff --git a/bin/sh/tests/errors/bad-parm-exp6.2 b/bin/sh/tests/errors/bad-parm-exp6.2 index b53a91b364b5..179aa5d06bb4 100644 --- a/bin/sh/tests/errors/bad-parm-exp6.2 +++ b/bin/sh/tests/errors/bad-parm-exp6.2 @@ -1,2 +1 @@ -# $FreeBSD$ eval '${#foo^}' diff --git a/bin/sh/tests/errors/bad-parm-exp7.0 b/bin/sh/tests/errors/bad-parm-exp7.0 index b8562fbed47b..d82b2eade819 100644 --- a/bin/sh/tests/errors/bad-parm-exp7.0 +++ b/bin/sh/tests/errors/bad-parm-exp7.0 @@ -1,4 +1,3 @@ -# $FreeBSD$ v=1 eval ": $(printf '${v-${\372}}')" diff --git a/bin/sh/tests/errors/bad-parm-exp8.0 b/bin/sh/tests/errors/bad-parm-exp8.0 index 28f00cde0f9f..9f983f1dad55 100644 --- a/bin/sh/tests/errors/bad-parm-exp8.0 +++ b/bin/sh/tests/errors/bad-parm-exp8.0 @@ -1,4 +1,3 @@ -# $FreeBSD$ v=1 eval ": $(printf '${v-${w\372}}')" diff --git a/bin/sh/tests/errors/option-error.0 b/bin/sh/tests/errors/option-error.0 index b4b44c4a4062..d5eac6f4c0c3 100644 --- a/bin/sh/tests/errors/option-error.0 +++ b/bin/sh/tests/errors/option-error.0 @@ -1,4 +1,3 @@ -# $FreeBSD$ IFS=, SPECIAL="break abc,\ diff --git a/bin/sh/tests/errors/redirection-error.0 b/bin/sh/tests/errors/redirection-error.0 index cb8c0b113c13..dfb9f1bfb100 100644 --- a/bin/sh/tests/errors/redirection-error.0 +++ b/bin/sh/tests/errors/redirection-error.0 @@ -1,4 +1,3 @@ -# $FreeBSD$ IFS=, SPECIAL="break,\ diff --git a/bin/sh/tests/errors/redirection-error2.2 b/bin/sh/tests/errors/redirection-error2.2 index 32bccd8e784a..0fb47d20917b 100644 --- a/bin/sh/tests/errors/redirection-error2.2 +++ b/bin/sh/tests/errors/redirection-error2.2 @@ -1,4 +1,3 @@ -# $FreeBSD$ # sh should fail gracefully on this bad redirect ${SH} -c 'echo 1 >&$a' 2>/dev/null diff --git a/bin/sh/tests/errors/redirection-error3.0 b/bin/sh/tests/errors/redirection-error3.0 index 8a07d037baec..d37ba8213547 100644 --- a/bin/sh/tests/errors/redirection-error3.0 +++ b/bin/sh/tests/errors/redirection-error3.0 @@ -1,4 +1,3 @@ -# $FreeBSD$ IFS=, SPECIAL="break,\ diff --git a/bin/sh/tests/errors/redirection-error4.0 b/bin/sh/tests/errors/redirection-error4.0 index 206097478e35..b7ce514a9fbc 100644 --- a/bin/sh/tests/errors/redirection-error4.0 +++ b/bin/sh/tests/errors/redirection-error4.0 @@ -1,4 +1,3 @@ -# $FreeBSD$ # A redirection error should not abort the shell if there is no command word. exec 2>/dev/null </var/empty/x diff --git a/bin/sh/tests/errors/redirection-error5.0 b/bin/sh/tests/errors/redirection-error5.0 index 1fcd47eebf96..1af2937839c2 100644 --- a/bin/sh/tests/errors/redirection-error5.0 +++ b/bin/sh/tests/errors/redirection-error5.0 @@ -1,4 +1,3 @@ -# $FreeBSD$ # A redirection error on a subshell should not abort the shell. exec 2>/dev/null ( echo bad ) </var/empty/x diff --git a/bin/sh/tests/errors/redirection-error6.0 b/bin/sh/tests/errors/redirection-error6.0 index 17d1109b390f..f0ac4a5025a5 100644 --- a/bin/sh/tests/errors/redirection-error6.0 +++ b/bin/sh/tests/errors/redirection-error6.0 @@ -1,4 +1,3 @@ -# $FreeBSD$ # A redirection error on a compound command should not abort the shell. exec 2>/dev/null { echo bad; } </var/empty/x diff --git a/bin/sh/tests/errors/redirection-error7.0 b/bin/sh/tests/errors/redirection-error7.0 index 5b20f04beb83..d853aee52fe2 100644 --- a/bin/sh/tests/errors/redirection-error7.0 +++ b/bin/sh/tests/errors/redirection-error7.0 @@ -1,4 +1,3 @@ -# $FreeBSD$ ! dummy=$( exec 3>&1 >&2 2>&3 diff --git a/bin/sh/tests/errors/redirection-error8.0 b/bin/sh/tests/errors/redirection-error8.0 index 91595457831e..4d2693f26319 100644 --- a/bin/sh/tests/errors/redirection-error8.0 +++ b/bin/sh/tests/errors/redirection-error8.0 @@ -1,4 +1,3 @@ -# $FreeBSD$ $SH -c '{ { :; } </var/empty/x; } 2>/dev/null || kill -INT $$; echo continued' r=$? diff --git a/bin/sh/tests/errors/script-error1.0 b/bin/sh/tests/errors/script-error1.0 index 558d9007353f..0020218cfd24 100644 --- a/bin/sh/tests/errors/script-error1.0 +++ b/bin/sh/tests/errors/script-error1.0 @@ -1,4 +1,3 @@ -# $FreeBSD$ { stderr=$(${SH} /var/empty/nosuchscript 2>&1 >&3); } 3>&1 r=$? diff --git a/bin/sh/tests/errors/write-error1.0 b/bin/sh/tests/errors/write-error1.0 index fcb52e74178c..027108f9ec51 100644 --- a/bin/sh/tests/errors/write-error1.0 +++ b/bin/sh/tests/errors/write-error1.0 @@ -1,3 +1,2 @@ -# $FreeBSD$ ! echo >&- 2>/dev/null |