diff options
author | Eric Wong <e@80x24.org> | 2021-10-01 09:54:39 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-10-01 12:06:30 +0000 |
commit | 361a5b0d5aa7f96117725bd8bb2bc0a168963148 (patch) | |
tree | 240e0a6c560411ce6b4f86a3a5ac35acf9c894e4 /t/httpd.t | |
parent | 1181a7e6a853841f2d9fe8a9131aa05ad6d7e9d7 (diff) | |
download | public-inbox-361a5b0d5aa7f96117725bd8bb2bc0a168963148.tar.gz |
Constant subroutines use more memory and there's no need to optimize it for inlining since it's only used at startup.
Diffstat (limited to 't/httpd.t')
-rw-r--r-- | t/httpd.t | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -109,8 +109,10 @@ SKIP: { skip 'accf_http not loaded: kldload accf_http', 1; } require PublicInbox::Daemon; - my $var = PublicInbox::Daemon::SO_ACCEPTFILTER(); - my $x = getsockopt($sock, SOL_SOCKET, $var); + ok(defined($PublicInbox::Daemon::SO_ACCEPTFILTER), + 'SO_ACCEPTFILTER defined'); + my $x = getsockopt($sock, SOL_SOCKET, + $PublicInbox::Daemon::SO_ACCEPTFILTER); like($x, qr/\Ahttpready\0+\z/, 'got httpready accf for HTTP'); }; |