Project

General

Profile

« Previous | Next » 

Revision 31793

merges r31177,r31178 and r31179 from trunk into ruby_1_9_2.

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

Skip syslog tests that rely on LOG_PERROR unless it's defined

Instead of checking looking at the platform to determine if the tests
relying on LOG_PERROR should be run, look for the definition of the
constant as this will be robust against all platforms as long as the
underlying syslog.c code sets it up correctly.

This specifically addresses failures on Solaris 9.

Signed-off-by: Ben Walton bwalton@artsci.utoronto.ca

Signed-off-by: URABE, Shyouhei shyouhei@ruby-lang.org

ChangeLog for it