summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/perl/cpan/Sys-Syslog/t/cpan-rt-21516.t
blob: f895eda22fad3fcc906d816e21946d1d05fd4f15 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!perl -wT
use strict;
use Test::More;

plan tests => 1;

# ----------
# CPAN-RT#21516: closelog() wasn't correctly calling closelog_xs() when 
# using the native mechanism.
# 
use Sys::Syslog;
openlog("sys-syslog-test", 'pid,ndelay', 'user');
closelog();
is( $@, '', "was closelog_xs() correctly called?" );