XP is just a number | |
PerlMonks |
Re^3: Testing a library that accesses an Oracle Databaseby kcott (Archbishop) |
on Sep 22, 2016 at 18:49 UTC ( [id://1172378]=note: print w/replies, xml ) | Need Help?? |
Fair enough. I'm also using Mac OS X (10.10.3) but, as I don't have local access to Oracle, I'm unable to run any tests for you. Here's a few more thoughts and suggestions. Using backticks (as shown in your update) will not be helpful. The command within the backticks will be executed in a new process environment which will be discarded (and the old process environment restored) when completed. E.g.
Also from your update, if setting $ENV{whatever} in a BEGIN block has no apparent effect, then that BEGIN block is possibly being reached too late. Try putting that BEGIN block earlier in the code. Remember, BEGIN blocks are executed in FIFO order, and use statements are
Consider writing env.t (or similar) with lines like:
Try setting environment values on the command line (like I did with XXX=unset above) prior to running your tests. I'm not suggesting this as a solution, but it may provide some useful feedback. You can set multiple values, e.g.
Check if Dist::Zilla is performing actions based on what it considers to be tainted data (see perlsec). This could affect your environment. I'll also front-page this thread to try to get you a bit more coverage. — Ken
In Section
Seekers of Perl Wisdom
|
|