Mercurial > dovecot > core-2.2
changeset 18693:91bbd6753689
lib: Use /dev/zero instead of /dev/stderr in test-istream-unix unit test
Some distros don't seem to allow opening stderr.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 14 May 2015 23:49:12 +0300 |
parents | 4c4eff229426 |
children | 9ad3f11617f1 |
files | src/lib/test-istream-unix.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/test-istream-unix.c Thu May 14 21:44:50 2015 +0300 +++ b/src/lib/test-istream-unix.c Thu May 14 23:49:12 2015 +0300 @@ -166,8 +166,8 @@ test_begin("istream unix"); if ((send_fd = open("/dev/null", O_RDONLY)) == -1) i_fatal("open(/dev/null) failed: %m"); - if ((send_fd2 = open("/dev/stderr", O_WRONLY)) == -1) - i_fatal("open(/dev/stderr) failed: %m"); + if ((send_fd2 = open("/dev/zero", O_RDONLY)) == -1) + i_fatal("open(/dev/zero) failed: %m"); if (socketpair(AF_UNIX, SOCK_STREAM, 0, fd) < 0) i_fatal("socketpair() failed: %m"); switch (fork()) {