Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re^6: Program Design Around Threads

by choroba (Bishop)
on Mar 06, 2013 at 23:29 UTC ( #1022121=note: print w/replies, xml ) Need Help??

in reply to Re^5: Program Design Around Threads
in thread Program Design Around Threads

A dieing test will prevent FAIL messages?
I was not accurate. Bail out in tests or die in the Makefile.PL|Build.PL.

Also read CPAN Author Notes.

لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^7: Program Design Around Threads
by BrowserUk (Pope) on Mar 06, 2013 at 23:46 UTC
    Bail out in tests ...

    How do you "Bail out" without dieing?

    or die in the Makefile.PL|Build.PL

    Hm. I'd forgotten about that heap of dingos kidneys.

    Let's see if I've remembered this correctly. I have to:

    1. Navigate my way around 26 nested classes (with 13 dependent packages) in order to:
    2. Write a perl script that:
    3. Generates a makefile that:
    4. Invokes perl plus another nested heap of packages to:
    5. issue emulated commands that:
    6. copy a single file from one directory to another!

    Executable configuration files are like using a cement mixer truck to make a pudding.

    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1022121]
[Discipulus]: in other words: i have a contructor that carps on missing arguments and I want to test that it fails correctly, without carping out in the test output
[Corion]: Discipulus: I usually redefine carp to be something that logs the error message... Maybe my $old_carp = \&Carp::carp; { no warnings 'redefine'; sub Carp::carp = sub { push @caught, [caller(), \@_]; die }

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2018-01-22 11:34 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (233 votes). Check out past polls.