[#11073] segfault printing instruction sequence for iterator — <noreply@...>

Bugs item #10527, was opened at 2007-05-02 14:42

14 messages 2007/05/02
[#11142] Re: [ ruby-Bugs-10527 ] segfault printing instruction sequence for iterator — Nobuyoshi Nakada <nobu@...> 2007/05/10

Hi,

[#11188] Re: [ ruby-Bugs-10527 ] segfault printing instruction sequence for iterator — Paul Brannan <pbrannan@...> 2007/05/16

On Thu, May 10, 2007 at 04:51:18PM +0900, Nobuyoshi Nakada wrote:

[#11234] Planning to release 1.8.6 errata — Urabe Shyouhei <shyouhei@...>

Hi all.

17 messages 2007/05/25

[ ruby-Bugs-10520 ] autorunner -n option does not work in trunk

From: <noreply@...>
Date: 2007-05-02 13:35:03 UTC
List: ruby-core #11071
Bugs item #10520, was opened at 2007-05-02 08:35
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=10520&group_id=426

Category: Standard Library
Group: 1.9.x
Status: Open
Resolution: None
Priority: 3
Submitted By: Paul Brannan (cout)
Assigned to: Nobody (None)
Summary: autorunner -n option does not work in trunk

Initial Comment:
The problem is that testcase.method_name is a Symbol, not a String.  Here's a patch:

--- autorunner.rb.orig  2007-05-02 09:32:10.907602615 -0400
+++ autorunner.rb       2007-05-02 09:32:15.211362915 -0400
@@ -144,9 +144,9 @@
             n = (%r{\A/(.*)/\Z} =~ n ? Regexp.new($1) : n)
             case n
             when Regexp
-              @filters << proc{|t| n =~ t.method_name ? true : nil}
+              @filters << proc{|t| n =~ t.method_name.to_s ? true : nil}
             else
-              @filters << proc{|t| n == t.method_name ? true : nil}
+              @filters << proc{|t| n == t.method_name.to_s ? true : nil}
             end
           end


----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=10520&group_id=426

In This Thread

Prev Next