mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test/test_syslog.rb (test_log): skipped on Android
On Android 28, LOG_PERROR is defined, but not implemented yet. This change skips Syslog#log explicitly.
This commit is contained in:
parent
d6c80876b7
commit
f3c4e620ac
1 changed files with 2 additions and 0 deletions
|
@ -143,6 +143,8 @@ class TestSyslog < Test::Unit::TestCase
|
|||
# LOG_PERROR is not implemented on Cygwin or Solaris. Only test
|
||||
# these on systems that define it.
|
||||
return unless Syslog.const_defined?(:LOG_PERROR)
|
||||
# LOG_PERROR is defined but not supported yet on Android.
|
||||
return if RUBY_PLATFORM =~ /android/
|
||||
|
||||
2.times {
|
||||
re = syslog_line_regex("syslog_test", "test1 - hello, world!")
|
||||
|
|
Loading…
Reference in a new issue