[Scons-dev] Contribution to SCons development.

Gary Oberbrunner garyo at oberbrunner.com
Fri Dec 5 09:21:16 EST 2014


On Thu, Dec 4, 2014 at 4:39 PM, Shreedhar Manek <shreedharmanek at gmail.com>
wrote:

> I need help with adapting tests.
>

Hi!

>
> I change the integer the equivalent string in chmod.py (eg. 0444
> to S_IRWXU and S_IRWXG and S_IRWXO) but there is problem ahead into the
> program and the test fails at this point -
>

Watch out, 0444 is not the same as  S_IRWXU and S_IRWXG and S_IRWXO, which
would be 0000 because of the "and"s. 0444 is S_IRUSR or S_IRGRP or S_IROTH.

>
> s = S_IMODE(os.stat(test.workpath('f1'))[ST_MODE])
> test.fail_test(s != 0444)
>
> What do I do about this?
>

How does it fail?  What is the value of s at that point?

-- 
Gary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist2.pair.net/pipermail/scons-dev/attachments/20141205/60bcf7e8/attachment.html>


More information about the Scons-dev mailing list