Subject: | Tests 5-18 fail when local admin |
I'm getting a test failure with Win32API-Net-0.12:
Failed 14/18 tests, 22.22% okay
Failed Test Stat Wstat Total Fail List of Failed
---------------------------------------------------
t/test.t 18 14 5-18
As best I can tell, the problem is just that test.t uses
Win32::IsAdminUser to decide whether it should run additional tests that
involve adding & modifying a user account. But Win32::IsAdminUser
determines whether you have administrator privileges on your local
machine (which I do), not whether you can add users to the domain (which
I can't).
Perhaps a better approach would be to check for a permission denied
error on UserAdd, and skip the additional tests in that case. At the
very least, it should write a diagnostic message saying that these
failures are expected if you can't add users to your domain.