From a107ef2a6ace98c51473dc3153564a44b260bc6f Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 6 Jul 2017 20:36:40 +0200 Subject: hush: rename hush-redir/redir3.tests (ash has redir3.tests which id different) Signed-off-by: Denys Vlasenko --- shell/hush_test/hush-redir/redir3.right | 14 -------------- shell/hush_test/hush-redir/redir3.tests | 9 --------- shell/hush_test/hush-redir/redir_errors.right | 14 ++++++++++++++ shell/hush_test/hush-redir/redir_errors.tests | 9 +++++++++ 4 files changed, 23 insertions(+), 23 deletions(-) delete mode 100644 shell/hush_test/hush-redir/redir3.right delete mode 100755 shell/hush_test/hush-redir/redir3.tests create mode 100644 shell/hush_test/hush-redir/redir_errors.right create mode 100755 shell/hush_test/hush-redir/redir_errors.tests (limited to 'shell') diff --git a/shell/hush_test/hush-redir/redir3.right b/shell/hush_test/hush-redir/redir3.right deleted file mode 100644 index 3d20bbf..0000000 --- a/shell/hush_test/hush-redir/redir3.right +++ /dev/null @@ -1,14 +0,0 @@ -hush: can't open '/does/not/exist': No such file or directory -One:1 -hush: can't open '/cant/be/created': No such file or directory -One:1 -Ok -hush: can't open '/cant/be/created': No such file or directory -Zero:0 -hush: can't open '/cant/be/created': No such file or directory -One:1 -hush: can't open '/cant/be/created': No such file or directory -One:1 -hush: can't open '/cant/be/created': No such file or directory -Zero:0 -Done diff --git a/shell/hush_test/hush-redir/redir3.tests b/shell/hush_test/hush-redir/redir3.tests deleted file mode 100755 index 7c28e43..0000000 --- a/shell/hush_test/hush-redir/redir3.tests +++ /dev/null @@ -1,9 +0,0 @@ -echo Error >/does/not/exist; echo One:$? -t=BAD -t=Ok >>/cant/be/created; echo One:$? -echo $t -! >/cant/be/created; echo Zero:$? -exec >/cant/be/created; echo One:$? -exec /bin/true >/cant/be/created; echo One:$? -! exec /bin/true >/cant/be/created; echo Zero:$? -echo Done diff --git a/shell/hush_test/hush-redir/redir_errors.right b/shell/hush_test/hush-redir/redir_errors.right new file mode 100644 index 0000000..3d20bbf --- /dev/null +++ b/shell/hush_test/hush-redir/redir_errors.right @@ -0,0 +1,14 @@ +hush: can't open '/does/not/exist': No such file or directory +One:1 +hush: can't open '/cant/be/created': No such file or directory +One:1 +Ok +hush: can't open '/cant/be/created': No such file or directory +Zero:0 +hush: can't open '/cant/be/created': No such file or directory +One:1 +hush: can't open '/cant/be/created': No such file or directory +One:1 +hush: can't open '/cant/be/created': No such file or directory +Zero:0 +Done diff --git a/shell/hush_test/hush-redir/redir_errors.tests b/shell/hush_test/hush-redir/redir_errors.tests new file mode 100755 index 0000000..7c28e43 --- /dev/null +++ b/shell/hush_test/hush-redir/redir_errors.tests @@ -0,0 +1,9 @@ +echo Error >/does/not/exist; echo One:$? +t=BAD +t=Ok >>/cant/be/created; echo One:$? +echo $t +! >/cant/be/created; echo Zero:$? +exec >/cant/be/created; echo One:$? +exec /bin/true >/cant/be/created; echo One:$? +! exec /bin/true >/cant/be/created; echo Zero:$? +echo Done -- cgit v1.1