mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use LOG_PID instead of LOG_PERROR in Syslog.open test
LOG_PERROR isn't a POSIX option for syslog, so it fails on platforms that don't define it. Solaris 9 and 10 are examples of this. Use LOG_PID instead. Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca> Signed-off-by: URABE, Shyouhei <shyouhei@ruby-lang.org> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6b1cf264a8
commit
d711cde778
1 changed files with 3 additions and 2 deletions
|
@ -48,10 +48,11 @@ class TestSyslog < Test::Unit::TestCase
|
||||||
Syslog.close
|
Syslog.close
|
||||||
|
|
||||||
# given parameters
|
# given parameters
|
||||||
Syslog.open("foo", Syslog::LOG_NDELAY | Syslog::LOG_PERROR, Syslog::LOG_DAEMON)
|
options = Syslog::LOG_NDELAY | Syslog::LOG_PID
|
||||||
|
Syslog.open("foo", options, Syslog::LOG_DAEMON)
|
||||||
|
|
||||||
assert_equal('foo', Syslog.ident)
|
assert_equal('foo', Syslog.ident)
|
||||||
assert_equal(Syslog::LOG_NDELAY | Syslog::LOG_PERROR, Syslog.options)
|
assert_equal(options, Syslog.options)
|
||||||
assert_equal(Syslog::LOG_DAEMON, Syslog.facility)
|
assert_equal(Syslog::LOG_DAEMON, Syslog.facility)
|
||||||
|
|
||||||
Syslog.close
|
Syslog.close
|
||||||
|
|
Loading…
Reference in a new issue