aboutsummaryrefslogtreecommitdiff
path: root/tests/test
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-11-25 15:17:01 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-25 15:17:01 +0200
commit757f42e7dea94f8b79b3d55074dedeafd853ddc5 (patch)
tree8fa27fd27e36a85a6348d85b746d49a676a27027 /tests/test
parenta3dad2118fb3925ef4f9baa90cea0dfd44ca93c6 (diff)
Implement literal here-document support
Diffstat (limited to 'tests/test')
-rw-r--r--tests/test/script/integration/testscript3
-rw-r--r--tests/test/script/runner/cleanup.test4
-rw-r--r--tests/test/script/runner/status.test4
3 files changed, 5 insertions, 6 deletions
diff --git a/tests/test/script/integration/testscript b/tests/test/script/integration/testscript
index b927fe8..93ce08a 100644
--- a/tests/test/script/integration/testscript
+++ b/tests/test/script/integration/testscript
@@ -69,8 +69,7 @@ touch test/dummy &!test/dummy;
$* <<EOI 2>>EOE
./: test{foo}
EOI
-warning: working directory test/ exists and is not empty at the beginning \
-of the test
+warning: working directory test/ exists and is not empty at the beginning of the test
EOE
: wd-not-empty-after
diff --git a/tests/test/script/runner/cleanup.test b/tests/test/script/runner/cleanup.test
index 474ce48..e6cefd5 100644
--- a/tests/test/script/runner/cleanup.test
+++ b/tests/test/script/runner/cleanup.test
@@ -49,7 +49,7 @@ rm a
: Test that file append redirect doesn't not register cleanup. If it did, that
: cleanup would fail as the file would be already deleted by 'rm'.
:
-$c <<EOI;
+$c <<"EOI";
touch a &!a;
$* -o foo >>>&a;
rm a
@@ -222,7 +222,7 @@ EOE
:
: Test an explicit cleanup not being overwritten with the implicit one.
:
-$c <<EOO;
+$c <<"EOO";
$* &!a;
$* -o foo >>>a
EOO
diff --git a/tests/test/script/runner/status.test b/tests/test/script/runner/status.test
index f1a20ec..716f2d4 100644
--- a/tests/test/script/runner/status.test
+++ b/tests/test/script/runner/status.test
@@ -36,13 +36,13 @@ $b
: eq-false
:
$c <"$* -s 1 == 0";
-$b 2>>EOE != 0
+$b 2>>"EOE" != 0
testscript:1: error: ../../../driver$ext exit status 1 != 0
EOE
: ne-false
:
$c <"$* -s 1 != 1";
-$b 2>>EOE != 0
+$b 2>>"EOE" != 0
testscript:1: error: ../../../driver$ext exit status 1 == 1
EOE