File: cpan-rt-55151.t

package info (click to toggle)
perl 5.40.1-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 126,152 kB
  • sloc: ansic: 668,539; perl: 525,522; sh: 72,038; pascal: 6,925; xml: 2,428; yacc: 1,410; makefile: 1,191; cpp: 208; lisp: 1
file content (19 lines) | stat: -rw-r--r-- 466 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!perl
use strict;
use Test::More;

plan tests => 2;

# --------------------
# CPAN-RT #55151: Allow temporary facility in syslog() for native mechanism
#
use Sys::Syslog qw< :standard :macros >;

openlog("Sys::Syslog", "pid,ndelay", "user");

eval { syslog("local0|info", "Lorem ipsum dolor sit amet") };
is($@, "", "syslog('local0|info', ...)");

eval { syslog(LOG_LOCAL0|LOG_INFO, "Lorem ipsum dolor sit amet") };
is($@, "", "syslog(LOG_LOCAL0|LOG_INFO, ...)");