On Thu, Dec 4, 2014 at 4:39 PM, Shreedhar Manek <shreedharma...@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
_______________________________________________ Scons-dev mailing list Scons-dev@scons.org https://pairlist2.pair.net/mailman/listinfo/scons-dev