about summary refs log tree commit diff
path: root/Misc/job-control-tests
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-07-12 17:02:52 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-07-12 17:02:52 +0000
commit59c3d242d546059cad473f1155ad0e350fe45260 (patch)
treeaea57772a784915c5cd8e7bd485948f28842976a /Misc/job-control-tests
parentb346c4796b3abdadd31cb0999d2f099ce9aa79af (diff)
downloadzsh-59c3d242d546059cad473f1155ad0e350fe45260.tar.gz
zsh-59c3d242d546059cad473f1155ad0e350fe45260.tar.xz
zsh-59c3d242d546059cad473f1155ad0e350fe45260.zip
Initial revision
Diffstat (limited to 'Misc/job-control-tests')
-rw-r--r--Misc/job-control-tests31
1 files changed, 31 insertions, 0 deletions
diff --git a/Misc/job-control-tests b/Misc/job-control-tests
new file mode 100644
index 000000000..7e35fba0b
--- /dev/null
+++ b/Misc/job-control-tests
@@ -0,0 +1,31 @@
+# These are some tests for the job control code.  The code chunks
+# have to be run interactively.  Some use files in the zsh distribution.
+
+# Try
+#   ^Z
+#   fg
+if true; then cat Src/builtin.c | less; fi
+
+# Try
+#   ^Z
+#   fg
+fn() {
+  if true; then cat Src/builtin.c | less; fi
+}
+fn
+
+# Try
+#   ^Z
+#   fg
+#   ^C
+# then
+#   ^Z
+#   bg
+#   kill
+while true; do sed -e 's/foo/bar/' Src/builtin.c >/dev/null; done
+
+# Try
+#   ^C
+# ignoring the error messages from sed.
+# ^Z is more of a problem since you have to catch the sed.
+while true; do sed -e 's/foo/bar/' non-existent-file >/dev/null; done