ruby-changes:58216
From: Yusuke <ko1@a...>
Date: Fri, 11 Oct 2019 21:49:18 +0900 (JST)
Subject: [ruby-changes:58216] f3c4e620ac (master): test/test_syslog.rb (test_log): skipped on Android
https://git.ruby-lang.org/ruby.git/commit/?id=f3c4e620ac From f3c4e620ac612eab6370b1fb82feaa4e651542bb Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Fri, 11 Oct 2019 21:13:52 +0900 Subject: 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. diff --git a/test/test_syslog.rb b/test/test_syslog.rb index c66e5f5..5327814 100644 --- a/test/test_syslog.rb +++ b/test/test_syslog.rb @@ -143,6 +143,8 @@ class TestSyslog < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/test_syslog.rb#L143 # 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!") -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/