[前][次][番号順一覧][スレッド一覧]

ruby-changes:38120

From: usa <ko1@a...>
Date: Fri, 10 Apr 2015 08:04:04 +0900 (JST)
Subject: [ruby-changes:38120] usa:r50201 (trunk): * test/ruby/test_process.rb: unfortunately, windows is not POSIX...

usa	2015-04-10 08:03:35 +0900 (Fri, 10 Apr 2015)

  New Revision: 50201

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50201

  Log:
    * test/ruby/test_process.rb: unfortunately, windows is not POSIX...
      cygwin has mkfifo command, but it does not affect system-wide.

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_process.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 50200)
+++ ChangeLog	(revision 50201)
@@ -1,7 +1,12 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Apr 10 08:00:17 2015  NAKAMURA Usaku  <usa@r...>
+
+	* test/ruby/test_process.rb: unfortunately, windows is not POSIX...
+	  cygwin has mkfifo command, but it does not affect system-wide.
+
 Fri Apr 10 02:18:53 2015  Tanaka Akira  <akr@f...>
 
 	* test/ruby/test_process.rb: Use mkfifo command instead of mknod
-	  command to create a named file.  mkfifo commandis defined by POSIX.
+	  command to create a named file.  mkfifo command is defined by POSIX.
 
 Fri Apr 10 01:29:05 2015  Tanaka Akira  <akr@f...>
 
Index: test/ruby/test_process.rb
===================================================================
--- test/ruby/test_process.rb	(revision 50200)
+++ test/ruby/test_process.rb	(revision 50201)
@@ -562,7 +562,7 @@ class TestProcess < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_process.rb#L562
     with_tmpchdir {|d|
       system("mkfifo fifo")
       return if !$?.success?
-      assert(FileTest.pipe?("fifo"))
+      assert(FileTest.pipe?("fifo"), "should be pipe")
       t1 = Thread.new {
         system(*ECHO["output to fifo"], :out=>"fifo")
       }
@@ -572,7 +572,7 @@ class TestProcess < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_process.rb#L572
       v1, v2 = assert_join_threads([t1, t2])
       assert_equal("output to fifo\n", v2)
     }
-  end
+  end unless windows? # does not support fifo
 
   def test_execopts_redirect_pipe
     with_pipe {|r1, w1|

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]