summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2018-06-28 22:56:50 +1000
committerMaxime Coste <mawww@kakoune.org>2018-06-28 22:56:50 +1000
commit43b72770ec5ef15723b0ee5c1901a39e23039de8 (patch)
tree222289ccefdb101959a3926ba53b306412f7781f /test
parentfe57d90091ce0b288d01d21f7fe274334b15e4f9 (diff)
Fix wrong logic for moving filedescriptors leading to closed stdin
With this fix, tests can now use /dev/null as stdin. Fixes #2165
Diffstat (limited to 'test')
-rwxr-xr-xtest/run2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/run b/test/run
index 9f560b20..8004be65 100755
--- a/test/run
+++ b/test/run
@@ -55,7 +55,7 @@ main() {
fi
ui_in="${root}/${dir}/ui-in"
- [ ! -f $ui_in ] && ui_in="/dev/tty"
+ [ ! -f $ui_in ] && ui_in="/dev/null"
number_tests=$(($number_tests + 1))
touch in; cp in out