]> git.notmuchmail.org Git - notmuch/commit
test: redirect STDIN from /dev/null
authorTomi Ollila <tomi.ollila@iki.fi>
Tue, 21 May 2019 20:17:02 +0000 (23:17 +0300)
committerDavid Bremner <david@tethera.net>
Wed, 22 May 2019 11:47:17 +0000 (08:47 -0300)
commitf33053023b2a3f42ba7d87e3ed58b58673bf08ad
tree0ef1c6bef42cc13fe3da42047c3485afbe2e929e
parent2669117ad75105c475f4c5850d9bf7a79dde9101
test: redirect STDIN from /dev/null

Without this stdin may be anything that parent process provided for it.

Test processes might have tried to read something from it, which would
have caused undeterministic behavior.

E.g. gdb(1) tries to do tty related ioctls on fd 0 (and fd 1 and fd 2,
but those are redirected to 'test.output' before test runs).
test/test-lib.sh