diff options
author | Eric Wong <e@80x24.org> | 2015-09-22 10:09:42 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-09-22 22:12:15 +0000 |
commit | 0b87f63548f524365a7e1c39635fdb05bfb3fb42 (patch) | |
tree | 3af4192b65367e5a0ac86cc693d2a4bf4e62782a /t | |
parent | f81ad477cb013d05b9b11fa051a9ebc5983a5be6 (diff) | |
download | public-inbox-0b87f63548f524365a7e1c39635fdb05bfb3fb42.tar.gz |
We need to run the syscall before testing for its failure :x
Diffstat (limited to 't')
-rw-r--r-- | t/nntpd.t | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -88,8 +88,8 @@ EOF } ok(defined $pid, 'forked nntpd process successfully'); $! = 0; - ok(! $!, 'no error from fcntl(F_SETFD)'); fcntl($sock, F_SETFD, $fl |= FD_CLOEXEC); + ok(! $!, 'no error from fcntl(F_SETFD)'); my $n = Net::NNTP->new($sock->sockhost . ':' . $sock->sockport); my $list = $n->list; is_deeply($list, { $group => [ qw(1 1 n) ] }, 'LIST works'); |