From 2e76c3f9016f674dad7a38ec7ba5b068d233f189 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 10 Jun 2008 18:27:50 +0000 Subject: hush: fix yet another fallout hush: move fixed testsuites out of hush-bugs/* --- shell/hush_test/hush-bugs/tick.right | 2 -- shell/hush_test/hush-bugs/tick.tests | 4 ---- shell/hush_test/hush-bugs/tick2.right | 1 - shell/hush_test/hush-bugs/tick2.tests | 6 ------ shell/hush_test/hush-psubst/tick.right | 2 ++ shell/hush_test/hush-psubst/tick.tests | 4 ++++ shell/hush_test/hush-psubst/tick2.right | 1 + shell/hush_test/hush-psubst/tick2.tests | 5 +++++ 8 files changed, 12 insertions(+), 13 deletions(-) delete mode 100644 shell/hush_test/hush-bugs/tick.right delete mode 100755 shell/hush_test/hush-bugs/tick.tests delete mode 100644 shell/hush_test/hush-bugs/tick2.right delete mode 100755 shell/hush_test/hush-bugs/tick2.tests create mode 100644 shell/hush_test/hush-psubst/tick.right create mode 100755 shell/hush_test/hush-psubst/tick.tests create mode 100644 shell/hush_test/hush-psubst/tick2.right create mode 100755 shell/hush_test/hush-psubst/tick2.tests (limited to 'shell/hush_test') diff --git a/shell/hush_test/hush-bugs/tick.right b/shell/hush_test/hush-bugs/tick.right deleted file mode 100644 index 6ed281c75..000000000 --- a/shell/hush_test/hush-bugs/tick.right +++ /dev/null @@ -1,2 +0,0 @@ -1 -1 diff --git a/shell/hush_test/hush-bugs/tick.tests b/shell/hush_test/hush-bugs/tick.tests deleted file mode 100755 index 1f749a9cd..000000000 --- a/shell/hush_test/hush-bugs/tick.tests +++ /dev/null @@ -1,4 +0,0 @@ -true -false; echo `echo $?` -true -{ false; echo `echo $?`; } diff --git a/shell/hush_test/hush-bugs/tick2.right b/shell/hush_test/hush-bugs/tick2.right deleted file mode 100644 index 216c883b8..000000000 --- a/shell/hush_test/hush-bugs/tick2.right +++ /dev/null @@ -1 +0,0 @@ -BAZ diff --git a/shell/hush_test/hush-bugs/tick2.tests b/shell/hush_test/hush-bugs/tick2.tests deleted file mode 100755 index dc518057c..000000000 --- a/shell/hush_test/hush-bugs/tick2.tests +++ /dev/null @@ -1,6 +0,0 @@ -# Bag: backticks are executed even inside not-taken if -if false; then - echo "FOO" - tmp=`echo BAR >&2` -fi -echo BAZ diff --git a/shell/hush_test/hush-psubst/tick.right b/shell/hush_test/hush-psubst/tick.right new file mode 100644 index 000000000..6ed281c75 --- /dev/null +++ b/shell/hush_test/hush-psubst/tick.right @@ -0,0 +1,2 @@ +1 +1 diff --git a/shell/hush_test/hush-psubst/tick.tests b/shell/hush_test/hush-psubst/tick.tests new file mode 100755 index 000000000..1f749a9cd --- /dev/null +++ b/shell/hush_test/hush-psubst/tick.tests @@ -0,0 +1,4 @@ +true +false; echo `echo $?` +true +{ false; echo `echo $?`; } diff --git a/shell/hush_test/hush-psubst/tick2.right b/shell/hush_test/hush-psubst/tick2.right new file mode 100644 index 000000000..216c883b8 --- /dev/null +++ b/shell/hush_test/hush-psubst/tick2.right @@ -0,0 +1 @@ +BAZ diff --git a/shell/hush_test/hush-psubst/tick2.tests b/shell/hush_test/hush-psubst/tick2.tests new file mode 100755 index 000000000..db4e944fe --- /dev/null +++ b/shell/hush_test/hush-psubst/tick2.tests @@ -0,0 +1,5 @@ +if false; then + echo "FOO" + tmp=`echo BAR >&2` +fi +echo BAZ -- cgit v1.2.3