]> git.notmuchmail.org Git - notmuch/blobdiff - test/test-lib.sh
test: redirect STDIN from /dev/null
[notmuch] / test / test-lib.sh
index 507886ba83f97eb69ecad6e6d16693ac505d7cab..7b49fc9799dac7ed371e4214193d74212cfb84da 100644 (file)
@@ -55,6 +55,9 @@ done,*)
        ;;
 esac
 
+# STDIN from /dev/null. EOF for readers (and ENOTTY for tty related ioctls).
+exec </dev/null
+
 # Save STDOUT to fd 6 and STDERR to fd 7.
 exec 6>&1 7>&2
 # Make xtrace debugging (when used) use redirected STDERR, with verbose lead: