summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2019-01-31 23:46:56 -0500
committerTavian Barnes <tavianator@tavianator.com>2019-02-01 12:50:29 -0500
commitaa5f0f5745e4e7392c078d1fe28825c941f52f7c (patch)
tree897376cebf759a6e90c4b94f7b3dd5fe3a42025a /tests
parent02132c2efb6daa213aa07b805ccb0c20241ca2f7 (diff)
downloadbfs-aa5f0f5745e4e7392c078d1fe28825c941f52f7c.tar.xz
main: Fix closed standard stream handling
bfs >&- should complain about a missing file descriptor, rather than silently succeeding.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_closed_stdin.out19
-rw-r--r--tests/test_ok_closed_stdin.out0
-rw-r--r--tests/test_okdir_closed_stdin.out0
3 files changed, 19 insertions, 0 deletions
diff --git a/tests/test_closed_stdin.out b/tests/test_closed_stdin.out
new file mode 100644
index 0000000..bb3cd8d
--- /dev/null
+++ b/tests/test_closed_stdin.out
@@ -0,0 +1,19 @@
+basic
+basic/a
+basic/b
+basic/c
+basic/e
+basic/g
+basic/i
+basic/j
+basic/k
+basic/l
+basic/c/d
+basic/e/f
+basic/g/h
+basic/j/foo
+basic/k/foo
+basic/l/foo
+basic/k/foo/bar
+basic/l/foo/bar
+basic/l/foo/bar/baz
diff --git a/tests/test_ok_closed_stdin.out b/tests/test_ok_closed_stdin.out
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/test_ok_closed_stdin.out
diff --git a/tests/test_okdir_closed_stdin.out b/tests/test_okdir_closed_stdin.out
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/test_okdir_closed_stdin.out