Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Check for root under Cygwin

by vsespb (Chaplain)
on Sep 02, 2013 at 12:04 UTC ( #1051933=note: print w/replies, xml ) Need Help??


in reply to Re: Check for root under Cygwin
in thread Check for root under Cygwin

Yes, skipping those tests would work for sure.
But is there an option to run tests, when possible? (i.e. determine if current cygwin user acts like root under *nix)

Replies are listed 'Best First'.
Re^3: Check for root under Cygwin
by syphilis (Chancellor) on Sep 02, 2013 at 12:29 UTC
    But is there an option to run tests, when possible?

    You mean that the tests *should* be run when running as administrator ? Perhaps Win32::IsAdminUser() is useful for determining that.
    See the Win32 module's documentation.

    Consider posting to the Cygwin mailing list (if you fail to receive a satisfactory answer here).

    Cheers,
    Rob
      Yes, Win32::IsAdminUser() is working right, seems it's the solution.
      I did not realize that this module available for Cygwin too.
      Thanks!
      You mean that the tests *should* be run when running as administrator ?
      No, test should be run when *not* running as administrator.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1051933]
help
Chatterbox?
roho replaces stale cookies with fresh on the platter on the sideboard.
roho takes a cookie from the platter on the sideboard.
roho takes a handful of cookies from the platter on the sideboard.
roho gets a cup of tea to dunk cookies.

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2017-04-27 09:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (502 votes). Check out past polls.