[macruby-changes] [2283] MacRuby/trunk

source_changes at macosforge.org source_changes at macosforge.org
Tue Aug 11 12:32:15 PDT 2009


Revision: 2283
          http://trac.macosforge.org/projects/ruby/changeset/2283
Author:   pthomson at apple.com
Date:     2009-08-11 12:32:14 -0700 (Tue, 11 Aug 2009)
Log Message:
-----------
Removed a lot of failing tags for Array; retagged Kernel.fail.

Modified Paths:
--------------
    MacRuby/trunk/array.c
    MacRuby/trunk/spec/frozen/tags/macruby/core/array/dup_tags.txt
    MacRuby/trunk/spec/frozen/tags/macruby/core/array/multiply_tags.txt
    MacRuby/trunk/spec/frozen/tags/macruby/core/kernel/fail_tags.txt

Removed Paths:
-------------
    MacRuby/trunk/spec/frozen/tags/macruby/core/array/clone_tags.txt
    MacRuby/trunk/spec/frozen/tags/macruby/core/array/collect_tags.txt
    MacRuby/trunk/spec/frozen/tags/macruby/core/array/delete_at_tags.txt
    MacRuby/trunk/spec/frozen/tags/macruby/core/array/delete_if_tags.txt
    MacRuby/trunk/spec/frozen/tags/macruby/core/array/delete_tags.txt
    MacRuby/trunk/spec/frozen/tags/macruby/core/array/map_tags.txt
    MacRuby/trunk/spec/frozen/tags/macruby/core/array/plus_tags.txt
    MacRuby/trunk/spec/frozen/tags/macruby/core/array/pop_tags.txt

Modified: MacRuby/trunk/array.c
===================================================================
--- MacRuby/trunk/array.c	2009-08-11 19:07:20 UTC (rev 2282)
+++ MacRuby/trunk/array.c	2009-08-11 19:32:14 UTC (rev 2283)
@@ -2749,6 +2749,9 @@
     if (OBJ_TAINTED(ary)) {
 	OBJ_TAINT(ary2);
     }
+    if (OBJ_UNTRUSTED(ary)) {
+    OBJ_UNTRUST(ary2);
+    }
     return ary2;
 }
 

Deleted: MacRuby/trunk/spec/frozen/tags/macruby/core/array/clone_tags.txt
===================================================================
--- MacRuby/trunk/spec/frozen/tags/macruby/core/array/clone_tags.txt	2009-08-11 19:07:20 UTC (rev 2282)
+++ MacRuby/trunk/spec/frozen/tags/macruby/core/array/clone_tags.txt	2009-08-11 19:32:14 UTC (rev 2283)
@@ -1 +0,0 @@
-fails:Array#clone copies untrusted status from the original

Deleted: MacRuby/trunk/spec/frozen/tags/macruby/core/array/collect_tags.txt
===================================================================
--- MacRuby/trunk/spec/frozen/tags/macruby/core/array/collect_tags.txt	2009-08-11 19:07:20 UTC (rev 2282)
+++ MacRuby/trunk/spec/frozen/tags/macruby/core/array/collect_tags.txt	2009-08-11 19:32:14 UTC (rev 2283)
@@ -1,2 +0,0 @@
-fails:Array#collect does not copy untrusted status
-fails:Array#collect! keeps untrusted status

Deleted: MacRuby/trunk/spec/frozen/tags/macruby/core/array/delete_at_tags.txt
===================================================================
--- MacRuby/trunk/spec/frozen/tags/macruby/core/array/delete_at_tags.txt	2009-08-11 19:07:20 UTC (rev 2282)
+++ MacRuby/trunk/spec/frozen/tags/macruby/core/array/delete_at_tags.txt	2009-08-11 19:32:14 UTC (rev 2283)
@@ -1,2 +0,0 @@
-fails:Array#delete_at keeps untrusted status
-fails:Array#delete_at tries to convert the passed argument to an Integer using #to_int

Deleted: MacRuby/trunk/spec/frozen/tags/macruby/core/array/delete_if_tags.txt
===================================================================
--- MacRuby/trunk/spec/frozen/tags/macruby/core/array/delete_if_tags.txt	2009-08-11 19:07:20 UTC (rev 2282)
+++ MacRuby/trunk/spec/frozen/tags/macruby/core/array/delete_if_tags.txt	2009-08-11 19:32:14 UTC (rev 2283)
@@ -1 +0,0 @@
-fails:Array#delete_if keeps untrusted status

Deleted: MacRuby/trunk/spec/frozen/tags/macruby/core/array/delete_tags.txt
===================================================================
--- MacRuby/trunk/spec/frozen/tags/macruby/core/array/delete_tags.txt	2009-08-11 19:07:20 UTC (rev 2282)
+++ MacRuby/trunk/spec/frozen/tags/macruby/core/array/delete_tags.txt	2009-08-11 19:32:14 UTC (rev 2283)
@@ -1,2 +0,0 @@
-fails:Array#delete keeps untrusted status
-fails:Array#delete removes elements that are #== to object

Modified: MacRuby/trunk/spec/frozen/tags/macruby/core/array/dup_tags.txt
===================================================================
--- MacRuby/trunk/spec/frozen/tags/macruby/core/array/dup_tags.txt	2009-08-11 19:07:20 UTC (rev 2282)
+++ MacRuby/trunk/spec/frozen/tags/macruby/core/array/dup_tags.txt	2009-08-11 19:32:14 UTC (rev 2283)
@@ -1,2 +1 @@
-fails:Array#dup copies untrusted status from the original
 fails:Array#dup does not copy singleton methods

Deleted: MacRuby/trunk/spec/frozen/tags/macruby/core/array/map_tags.txt
===================================================================
--- MacRuby/trunk/spec/frozen/tags/macruby/core/array/map_tags.txt	2009-08-11 19:07:20 UTC (rev 2282)
+++ MacRuby/trunk/spec/frozen/tags/macruby/core/array/map_tags.txt	2009-08-11 19:32:14 UTC (rev 2283)
@@ -1,2 +0,0 @@
-fails:Array#map does not copy untrusted status
-fails:Array#map! keeps untrusted status

Modified: MacRuby/trunk/spec/frozen/tags/macruby/core/array/multiply_tags.txt
===================================================================
--- MacRuby/trunk/spec/frozen/tags/macruby/core/array/multiply_tags.txt	2009-08-11 19:07:20 UTC (rev 2282)
+++ MacRuby/trunk/spec/frozen/tags/macruby/core/array/multiply_tags.txt	2009-08-11 19:32:14 UTC (rev 2283)
@@ -1,11 +1,4 @@
 critical:Array#* with a string raises an ArgumentError when the Array is recursive
-fails:Array#* with an integer copies the untrusted status of the original array even if the passed count is 0
-fails:Array#* with an integer copies the untrusted status of the original array even if the array is empty
-fails:Array#* with an integer copies the untrusted status of the original array if the passed count is not 0
 fails:Array#* with a string returns a string formed by concatenating each element.to_s separated by separator without trailing separator
 fails:Array#* with a string raises a NoMethodError if an element does not respond to #to_s
-fails:Array#* with a string does not consider untrustworthiness of either the array or the separator when the array is empty
 fails:Array#* with a string returns a string which would be infected with untrustworthiness of the array, its elements or the separator when the array is not empty
-fails:Array#* tries to convert the passed argument to a String using #to_str
-fails:Array#* tires to convert the passed argument to an Integer using #to_int
-fails:Array#* with a string tries to convert the passed separator to a String using #to_str

Deleted: MacRuby/trunk/spec/frozen/tags/macruby/core/array/plus_tags.txt
===================================================================
--- MacRuby/trunk/spec/frozen/tags/macruby/core/array/plus_tags.txt	2009-08-11 19:07:20 UTC (rev 2282)
+++ MacRuby/trunk/spec/frozen/tags/macruby/core/array/plus_tags.txt	2009-08-11 19:32:14 UTC (rev 2283)
@@ -1,2 +0,0 @@
-fails:Array#+ does not infected even if an original array is untrusted
-fails:Array#+ tries to convert the passed argument to an Array using #to_ary

Deleted: MacRuby/trunk/spec/frozen/tags/macruby/core/array/pop_tags.txt
===================================================================
--- MacRuby/trunk/spec/frozen/tags/macruby/core/array/pop_tags.txt	2009-08-11 19:07:20 UTC (rev 2282)
+++ MacRuby/trunk/spec/frozen/tags/macruby/core/array/pop_tags.txt	2009-08-11 19:32:14 UTC (rev 2283)
@@ -1,4 +0,0 @@
-fails:Array#pop keeps untrusted status
-fails:Array#pop passed a number n as an argument returns a trusted array even if the array is untrusted
-fails:Array#pop passed a number n as an argument keeps untrusted status
-fails:Array#pop passed a number n as an argument tries to convert n to an Integer using #to_int

Modified: MacRuby/trunk/spec/frozen/tags/macruby/core/kernel/fail_tags.txt
===================================================================
--- MacRuby/trunk/spec/frozen/tags/macruby/core/kernel/fail_tags.txt	2009-08-11 19:07:20 UTC (rev 2282)
+++ MacRuby/trunk/spec/frozen/tags/macruby/core/kernel/fail_tags.txt	2009-08-11 19:32:14 UTC (rev 2283)
@@ -1 +1,2 @@
+fails:Kernel.fail raises a RuntimeError
 fails:Kernel.fail is a private method
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090811/3f1b44fd/attachment.html>


More information about the macruby-changes mailing list