[macruby-changes] [1362] MacRuby/branches/experimental

source_changes at macosforge.org source_changes at macosforge.org
Sat Apr 4 17:40:28 PDT 2009


Revision: 1362
          http://trac.macosforge.org/projects/ruby/changeset/1362
Author:   pthomson at apple.com
Date:     2009-04-04 17:40:27 -0700 (Sat, 04 Apr 2009)
Log Message:
-----------
Got rid of two tests that didn't work (sorry everyone) and added two more that do.

Modified Paths:
--------------
    MacRuby/branches/experimental/io.c
    MacRuby/branches/experimental/rakelib/spec.rake
    MacRuby/branches/experimental/spec/frozen/core/io/shared/new.rb

Modified: MacRuby/branches/experimental/io.c
===================================================================
--- MacRuby/branches/experimental/io.c	2009-04-05 00:17:10 UTC (rev 1361)
+++ MacRuby/branches/experimental/io.c	2009-04-05 00:40:27 UTC (rev 1362)
@@ -1796,15 +1796,8 @@
 VALUE
 rb_io_binmode(VALUE io, SEL sel)
 {
-    // TODO
-#if 0
-    rb_io_t *fptr;
-
-    GetOpenFile(io, fptr);
-    fptr->mode |= FMODE_BINMODE;
-    return io;
-#endif
-    abort();
+	// rb_warn("binmode does nothing on Mac OS X");
+	return io;
 }
 
 /*

Modified: MacRuby/branches/experimental/rakelib/spec.rake
===================================================================
--- MacRuby/branches/experimental/rakelib/spec.rake	2009-04-05 00:17:10 UTC (rev 1361)
+++ MacRuby/branches/experimental/rakelib/spec.rake	2009-04-05 00:40:27 UTC (rev 1362)
@@ -29,6 +29,7 @@
   }
   
   KNOWN_GOOD_CORE_IO = %w{
+    binmode
     closed
     constants
     fileno
@@ -37,8 +38,7 @@
     getc
     io
     inspect
-    pid
-    putc
+    initialize_copy
     readchar
     sync
     syswrite

Modified: MacRuby/branches/experimental/spec/frozen/core/io/shared/new.rb
===================================================================
--- MacRuby/branches/experimental/spec/frozen/core/io/shared/new.rb	2009-04-05 00:17:10 UTC (rev 1361)
+++ MacRuby/branches/experimental/spec/frozen/core/io/shared/new.rb	2009-04-05 00:40:27 UTC (rev 1362)
@@ -1,6 +1,6 @@
 require File.dirname(__FILE__) + '/../fixtures/classes'
 
-describe :io_new, :shared => true do
+describe(:io_new, {:shared => true}) do
   before :all do
     @filename = tmp("rubinius-spec-io-new-#{$$}.txt")
   end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090404/6ccc3183/attachment.html>


More information about the macruby-changes mailing list