Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Test.pm assertion subs shouldn't autothread #15

Open
masak opened this issue Apr 10, 2012 · 1 comment
Open

Test.pm assertion subs shouldn't autothread #15

masak opened this issue Apr 10, 2012 · 1 comment

Comments

@masak
Copy link
Member

masak commented Apr 10, 2012

<[Coke]> p6: use Test; ok(any(1|0), "how many tests?")
<p6eval> niecza v15-6-gefda208: OUTPUT«ok 1 - how many tests?␤»
<p6eval> ..pugs: OUTPUT«pugs: *** Unsafe function 'use' called under safe mode␤    at /tmp/kAdBVcKtTv line 1, column 1␤»
<moritz> [Coke]: 1
<moritz> [Coke]: test functions shouldn't autothread
<masak> did we spec that?
<[Coke]> moritz: was trying to demonstrate that pugs autothreads.
<[Coke]> locally I get:
<[Coke]> ok 1 - how many tests?
<[Coke]> not ok 2 - how many tests?
<[Coke]> masak: there's a pugsbug ferya.
* masak submits pugsbug
<masak> we did spec that.
<moritz> masak: where?
<masak> moritz: https://github.com/perl6/specs/blob/master/S24-testing.pod
<masak> lots of Mu in the signatures.
<moritz> masak: ah, right
@audreyt
Copy link

audreyt commented Jul 19, 2012

In addition to updating ./ext/Test/lib/Test.pm, this ticket will also exercise the ./ext/Test/lib/Test.pm => ./cbits/Test_pm.c packing code, which (iirc) was only in Mu but not picked up to Pugs.hs.

It'd be nice, of course, to rewrite that packing script in perl6, if someone has a cycle for it :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants