Message from discussion
[BUG] Bad failure mode when macro returns AST.new in Rakudo
Received: by 10.68.251.136 with SMTP id zk8mr8560195pbc.1.1352907003456;
Wed, 14 Nov 2012 07:30:03 -0800 (PST)
Newsgroups: perl.perl6.compiler
Path: s9ni10519pbb.0!nntp.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!nntp.develooper.com!nntp.perl.org
Return-Path: <rt-will=coleda....@rt.perl.org>
Mailing-List: contact perl6-compiler-h...@perl.org; run by ezmlm
Delivered-To: mailing list perl6-compi...@perl.org
Received: (qmail 15851 invoked from network); 14 Nov 2012 15:16:59 -0000
Received: from x1.develooper.com (207.171.7.70)
by x6.develooper.com with SMTP; 14 Nov 2012 15:16:59 -0000
Received: (qmail 18357 invoked by uid 225); 14 Nov 2012 15:16:59 -0000
Delivered-To: perl6-compi...@perl.org
Received: (qmail 18350 invoked by alias); 14 Nov 2012 15:16:58 -0000
X-Spam-Status: No, hits=-2.9 required=8.0
tests=ALL_TRUSTED,BAYES_00
X-Spam-Check-By: la.mx.develooper.com
Received: from x17.develooper.com (HELO x17.develooper.com) (207.171.7.217)
by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Wed, 14 Nov 2012 07:16:56 -0800
Received: by x17.develooper.com (Postfix, from userid 405)
id 3FBE935BD4; Wed, 14 Nov 2012 07:16:53 -0800 (PST)
Subject: [perl #115506] [BUG] Bad failure mode when macro returns AST.new in Rakudo
Reply-To: perl6-bugs-follo...@perl.org
In-Reply-To: <rt-3.6.HEAD-17500-1352899469-1905.115506-15-0@perl.org>
References: <RT-Ticket-115506@perl.org>
<CADwUm8ftMFAAwEXgwgJi4zUGNNBdtysXQ2tBFJce0OGcEv4G6Q@mail.gmail.com>
<rt-3.6.HEAD-17500-1351959425-432.115506-15-0@perl.org>
<rt-3.6.HEAD-17500-1352863039-1357.115506-15-0@perl.org>
<rt-3.6.HEAD-17500-1352899469-1905.115506-15-0@perl.org>
Message-ID: <rt-3.6.HEAD-17500-1352906212-1484.115506-15-0@perl.org>
X-RT-Loop-Prevention: perl
RT-Ticket: perl #115506
Managed-BY: RT 3.6.HEAD (http://www.bestpractical.com/rt/)
RT-Originator: w...@coleda.com
CC: perl6-compi...@perl.org
To: "OtherRecipients of perl Ticket #115506":;
MIME-Version: 1.0
X-RT-Original-Encoding: utf-8
Date: Wed, 14 Nov 2012 07:16:53 -0800
Approved: n...@nntp.perl.org
From: perl6-bugs-follo...@perl.org ("Will Coleda via RT")
X-Received-Bytes: 2980
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset="utf-8"
On Wed Nov 14 05:24:29 2012, masak wrote:
> coke (>):
> > I was unable to test this:
> >
> > #RT #115506
> > eval_lives_ok
> > "macro pathological { AST.new }; pathological();",
> > "macro returning AST.new doesn't blow up";
> >
> > fails with:
> >
> > prove -v -e t/fudgeandrun t/spec/S06-macros/errors.tt/spec/S06-
> > macros/errors.t ..
> > 1..1
> > not ok 1 - macro returning AST.new doesn't blow up
> > # Error: Missing block
> > # Looks like you failed 1 tests of 1
>
> Double-quoted "" strings interpolate {} blocks. So I don't think the
> first argument to eval_lives_ok means what you think it means. I've done
> the same thinko myself a number of times.
*facepalm*
Created new test file, S06-macros/errors.t, rakudo now runs that file.
--
Will "Coke" Coleda