Fixes for get_user_id as well as tests.
add initial plaform code for a new getuid() wrapper function. Untested
add a get_user_id method to OS
add stub methods to determine basic file permissions to OS.pmc. Need …
access() returns 0 on success and -1 on failure. Add 1 to the return …
…value to turn it into a usable boolean
Adding dynpmc tests.
Fixed weird get_user_id test, but still getting undefined symbols.
Added PARROT_EXPORT to Parrot_get_user_id.
Added dynpmc can_execute test.
I executed the commands described in Steps 1 and 2 below, i.e., I got your code but did not merge it into master. After Step 2, I called "perl Configure.pl --test; make; prove -v t/dynpmc/os.t. I got this error in the test file:
not ok 17 - Test get_user_id
ok 18 - Test can_execute
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/18 subtests
t/dynpmc/os.t (Wstat: 256 Tests: 18 Failed: 1)
Failed test: 17
Non-zero exit status: 1
This was run on linux/i386. Can you diagnose the test failures? Thanks.
Okay, I've already merged this branch (sorry, I don't think I saw Jim's last comment before merging). I'll take a look at the failures too.
I think rofflwaffls was fixing the code just about the same time I was testing. After the merge into trunk, my tests passed.