New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.5.4.3 / test_posix failing on HPUX systems #49363
Comments
The 'test_posix' of Python's 2.5.4.3 testsuite fails on HPUX. This has The attached file contains the output of executing ./apy/bin/python2.5 ./apy/lib/python2.5/test/regrtest.py -v test_posix |
If you try "chown root foobar", with <foobar> being a valid file you |
Yes. Session log: andreask@bertha:~/tmp/x> ll andreask@bertha: andreask@bertha: |
That explains what the test fails then. The test expects that you can't (this won't be fixed in 2.5 by the way: 2.5 only receives security |
I do not know if this is standard for hpux or not. I can say that right now we have six different HPUX machines which Regarding the platform codes, here are the results. andreask@bertha:~/tmp/autotest> ./apy/bin/python2.5
ActivePython 2.5.4.3 (ActiveState Software Inc.) based on
Python 2.5.4 (r254:67916, Jan 20 2009, 14:48:58) [C] on hp-ux11
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys, platform
>>> sys.platform
'hp-ux11'
>>> platform.system()
'HP-UX'
>>> quit() The six machines I mentioned are bertha - HP-UX 11.00 (PA-RISC) |
Ok, and when you try to chown back to yourself the root-owned foobar, |
Yes, that does fail with error 'not owner'. andreask@bertha: |
Actually, looking at the man page, this seems to be normal: --- So depending on the setting of setprivgrp, chown'ing a file to root may be allowed or not. |
Patch attached. |
It's surprising to raise a SkipTest *at the end* of the test. Here is another patch. |
Using chown_hpux-4.diff, we don't skip anything on HP-UX. |
Victor, I don't understand your patch: if we try chown()ing a file to root, then this will fail on HP-UX (because chown won't fail with EPERM). That's the whole point of the patch. |
Oooh, I'm confused. I removed this stupid patch. |
# HP-UX and Solaris allow a non-root user to chown to root I didn't see failure on our Solaris / OpenIndiana buildbot. Should we really skip the test on Solaris? |
Well, IIRC, I read in the Solaris man pages that it behaves like HP-UX |
chown_hpux-3.diff has a problem too: it skips the successful chown call (that's why I put the SkipTest at the end). |
Adi, since you have access to an HP-UX box, could you test the attached patch (chown_hpux.diff)? |
Hi, Not sure what codebase was used for the patch. I have manually patched the test on 2.5.6 and the test_posix tests passed. Thanks! |
I am not sure how the search works, but for example I was not able to reach http://bugs.python.org/issue5895 while searching for hpux or hp-ux using the internal search. Also I was not able to find any aix or solaris bug. In case you bump over an hpux, aix, solaris bug, please add me to the noisy list and I will take a look. Thanks! |
Search is currently not returning all matching issues, unfortunately. You might get a few more hits by searching for hpux in the title field via advanced search. |
New changeset 8a4c9a168d09 by Charles-François Natali in branch '2.7': New changeset 428bece48029 by Charles-François Natali in branch '3.2': New changeset 3d4922cf0d65 by Charles-François Natali in branch 'default': |
Committed, thanks. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: