Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: How to share an object between test cases using Test::Harness

by mellon85 (Monk)
on Feb 25, 2011 at 05:00 UTC ( #890124=note: print w/replies, xml ) Need Help??


in reply to How to share an object between test cases using Test::Harness

You just import the package Tester in 2 different files, there is no sharing of any kind of data.

If you want a persistent object between test cases you need to save/load it in your test cases

  • Comment on Re: How to share an object between test cases using Test::Harness

Replies are listed 'Best First'.
Re^2: How to share an object between test cases using Test::Harness
by psantann (Novice) on Feb 25, 2011 at 17:24 UTC
    Hi, Thanks for you response! Yes, I think that might be the appropriated route for me. As I mentioned before, the trick here is to save the status of the network connection between each test file run. Does anyone have any module recommendations that would be appropriated to handle that?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://890124]
help
Chatterbox?
[oiskuu]: I'm unfamiliar with android or SELinux. But I believe there is nothing of a kind. Unless you play with capabilities or build your own containers/ namespaces.
[davido]: I am not finding closing STDIN to be an adequate means of making getlogin return undef.
[Corion]: Maybe doing a double-fork (daemonizing) can make go that information away, but maybe not
[Corion]: But I think my knowledge of unix/Linux datastructures is several decades out of date, so I don't really know what information it keeps on processes
[oiskuu]: The useful bits that relate to your process can be found under /proc/self. What information are you thinking of? Tty name?
[tye]: I just daemonized and getlogin() still knew who I had been.

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2017-06-23 19:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (554 votes). Check out past polls.