Skip to content

Commit 738f06d

Browse files
committed
Load libwin32-0.172 into trunk.
1 parent 44e210c commit 738f06d

File tree

1 file changed

+16
-19
lines changed

1 file changed

+16
-19
lines changed

t/netadmin.t

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Win32::NetAdmin::GetDomainController('', '', $serverName);
1414

1515
$serverName = '';
1616
$userName = 'TestUser';
17-
$password = '';
17+
$password = 'password';
1818
$passwordAge = 0;
1919
$privilege = USER_PRIV_USER;
2020
$homeDir = 'c:\\';
@@ -24,21 +24,18 @@ $scriptpath = 'C:\\';
2424
$groupName = 'TestGroup';
2525
$groupComment = "This is a test group";
2626

27-
print "1..16\n";
27+
print "1..15\n";
2828

2929
# TODO: Check to make sure current account has rights to Create user accounts etc.
3030

3131
Win32::NetAdmin::UserCreate($serverName, $userName, $password, $passwordAge, $privilege, $homeDir, $comment, $flags, $scriptpath) || print "not ";
3232
print "ok 1\n";
3333

34-
Win32::NetAdmin::UserGetAttributes($serverName, $userName, $Getpassword, $GetpasswordAge, $Getprivilege, $GethomeDir, $Getcomment, $Getflags, $Getscriptpath) || print "not ";
34+
Win32::NetAdmin::UserGetAttributes($serverName, $userName, my $getpassword, $GetpasswordAge, $Getprivilege, $GethomeDir, $Getcomment, $Getflags, $Getscriptpath) || print "not ";
3535
print "ok 2\n";
3636

37-
($password eq $Getpassword) || print "not ";
38-
print "ok 3\n";
39-
4037
($passwordAge == $GetpasswordAge) || print "not ";
41-
print "ok 4\n";
38+
print "ok 3\n";
4239

4340
if($serverName eq '')
4441
{
@@ -49,38 +46,38 @@ else
4946
{
5047
($privilege == $Getprivilege) || print "not ";
5148
}
52-
print "ok 5\n";
49+
print "ok 4\n";
5350

5451
($homeDir eq $GethomeDir) || print "not ";
55-
print "ok 6\n";
52+
print "ok 5\n";
5653

5754
($comment eq $Getcomment) || print "not ";
58-
print "ok 7\n";
55+
print "ok 6\n";
5956

6057
($flags == ($Getflags&USER_PRIV_MASK)) || print "not ";
61-
print "ok 8\n";
58+
print "ok 7\n";
6259

6360
($scriptpath eq $Getscriptpath) || print "not ";
64-
print "ok 9\n";
61+
print "ok 8\n";
6562

6663
Win32::NetAdmin::LocalGroupCreate($serverName, $groupName, $groupComment) || print "not ";
67-
print "ok 10\n";
64+
print "ok 9\n";
6865

6966
Win32::NetAdmin::LocalGroupGetAttributes($serverName, $groupName, $GetgroupComment) || print "not ";
70-
print "ok 11\n";
67+
print "ok 10\n";
7168

7269
($groupComment eq $GetgroupComment) || print "not ";
73-
print "ok 12\n";
70+
print "ok 11\n";
7471

7572
Win32::NetAdmin::LocalGroupAddUsers($serverName, $groupName, $userName) || print "not ";
76-
print "ok 13\n";
73+
print "ok 12\n";
7774

7875
Win32::NetAdmin::LocalGroupIsMember($serverName, $groupName, $userName) || print "not ";
79-
print "ok 14\n";
76+
print "ok 13\n";
8077

8178
Win32::NetAdmin::LocalGroupDelete($serverName, $groupName) || print "not ";
82-
print "ok 15\n";
79+
print "ok 14\n";
8380

8481
Win32::NetAdmin::UserDelete($serverName, $userName) || print "not ";
85-
print "ok 16\n";
82+
print "ok 15\n";
8683

0 commit comments

Comments
 (0)