about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-09-22 10:09:42 +0000
committerEric Wong <e@80x24.org>2015-09-22 22:12:15 +0000
commit0b87f63548f524365a7e1c39635fdb05bfb3fb42 (patch)
tree3af4192b65367e5a0ac86cc693d2a4bf4e62782a /t
parentf81ad477cb013d05b9b11fa051a9ebc5983a5be6 (diff)
downloadpublic-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.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/nntpd.t b/t/nntpd.t
index d30ed63f..d886e3c6 100644
--- a/t/nntpd.t
+++ b/t/nntpd.t
@@ -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');