Created
February 18, 2018 01:02
-
-
Save plicease/c667a4e83dff039930ed22b235fcfd0d to your computer and use it in GitHub Desktop.
Unix::Groups::FFI sudo test on os x
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sh-3.2# TEST_ORIGINAL_USER=ollisg TEST_RUN_SUDO=1 prove -lvm xt/author/sudo.t | |
xt/author/sudo.t .. | |
ok 1 - Set supplementary groups to 20 | |
ok 2 - Retrieved supplementary groups 20 | |
ok 3 - Cleared supplementary groups | |
not ok 4 - No supplementary groups | |
# Failed test 'No supplementary groups' | |
# at xt/author/sudo.t line 26. | |
# Structures begin differing at: | |
# $got->[0] = '0' | |
# $expected->[0] = Does not exist | |
ok 5 - Failed to set 2**18 groups | |
ok 6 - right error code | |
ok 7 - Initialized groups for ollisg with 20 | |
ok 8 - Supplementary groups contain 20 | |
ok 9 - Supplementary groups match groups for ollisg with 20 | |
ok 10 - Initialized groups for ollisg | |
ok 11 - Supplementary groups contain 20 | |
ok 12 - Supplementary groups match groups for ollisg | |
ok 13 - Failed to initialize groups for nonexistent user | |
ok 14 - right error code | |
ok 15 - Initialized groups for nonexistent user | |
not ok 16 - Supplementary groups initialized to 20 | |
# Failed test 'Supplementary groups initialized to 20' | |
# at xt/author/sudo.t line 50. | |
# Structures begin differing at: | |
# $got->[1] = '4294967295' | |
# $expected->[1] = Does not exist | |
1..16 | |
# Looks like you failed 2 tests of 16. | |
Dubious, test returned 2 (wstat 512, 0x200) | |
Failed 2/16 subtests | |
Test Summary Report | |
------------------- | |
xt/author/sudo.t (Wstat: 512 Tests: 16 Failed: 2) | |
Failed tests: 4, 16 | |
Non-zero exit status: 2 | |
Files=1, Tests=16, 1 wallclock secs ( 0.03 usr 0.00 sys + 0.22 cusr 0.02 csys = 0.27 CPU) | |
Result: FAIL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment