summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAdarsh Sanjeev <adarshsanjeev@gmail.com>2016-01-04 17:50:59 (GMT)
committerAdarsh Sanjeev <adarshsanjeev@gmail.com>2016-01-04 17:50:59 (GMT)
commitea232cd3c7b8af29de3fa2619a20e7a24886cdcb (patch)
treebe253ecc9a2a5ff3a14927ba09e24c5e6913a4e0 /test
parent9ee508ee318cb51f3ff7194a0385a2ba74dcedd9 (diff)
downloadSCons-ea232cd3c7b8af29de3fa2619a20e7a24886cdcb.zip
SCons-ea232cd3c7b8af29de3fa2619a20e7a24886cdcb.tar.gz
SCons-ea232cd3c7b8af29de3fa2619a20e7a24886cdcb.tar.bz2
Changed as per review
Diffstat (limited to 'test')
-rw-r--r--test/Chmod.py32
1 files changed, 16 insertions, 16 deletions
diff --git a/test/Chmod.py b/test/Chmod.py
index 762d286..c5b2a8d 100644
--- a/test/Chmod.py
+++ b/test/Chmod.py
@@ -64,11 +64,11 @@ env.Command('f7.out', 'f7.in', [Cat,
env = Environment(FILE = 'f9')
env.Command('f8.out', 'f8.in', [Chmod(['$FILE', File('f10')], 0666), Cat])
Execute(Chmod(['d11', Dir('d12')], 0777))
-Execute(Chmod('f13', "go=rw"))
-Execute(Chmod('f14', "u-r"))
-Execute(Chmod('f15', "a+x"))
-Execute(Chmod('d16', "uo=x"))
-Execute(Chmod(['d17', 'd18'], "o-wx"))
+Execute(Chmod('f13', "a=r"))
+Execute(Chmod('f14', "ogu+w"))
+Execute(Chmod('f15', "ug=rw, go+ rw"))
+Execute(Chmod('d16', "0777"))
+Execute(Chmod(['d17', 'd18'], "ogu = rwx"))
""")
test.write('f1', "f1\n")
@@ -124,11 +124,11 @@ Chmod("f1-File", 0666)
Chmod("d2", 0777)
Chmod("d2-Dir", 0777)
Chmod(["d11", "d12"], 0777)
-Chmod("f13", "go=rw")
-Chmod("f14", "u-r")
-Chmod("f15", "a+x")
-Chmod("d16", "uo=x")
-Chmod(["d17", "d18"], "o-wx")
+Chmod("f13", "a=r")
+Chmod("f14", "ogu+w")
+Chmod("f15", "ug=rw, go+ rw")
+Chmod("d16", "0777")
+Chmod(["d17", "d18"], "ogu = rwx")
""",
build_str = """\
cat(["bar.out"], ["bar.in"])
@@ -220,17 +220,17 @@ test.fail_test(s != 0777)
s = stat.S_IMODE(os.stat(test.workpath('d12'))[stat.ST_MODE])
test.fail_test(s != 0777)
s = stat.S_IMODE(os.stat(test.workpath('f13'))[stat.ST_MODE])
-test.fail_test(s != 0066)
+test.fail_test(s != 0444)
s = stat.S_IMODE(os.stat(test.workpath('f14'))[stat.ST_MODE])
-test.fail_test(s != 0044)
+test.fail_test(s != 0666)
s = stat.S_IMODE(os.stat(test.workpath('f15'))[stat.ST_MODE])
-test.fail_test(s != 0555)
+test.fail_test(s != 0666)
s = stat.S_IMODE(os.stat(test.workpath('d16'))[stat.ST_MODE])
-test.fail_test(s != 0101)
+test.fail_test(s != 0777)
s = stat.S_IMODE(os.stat(test.workpath('d17'))[stat.ST_MODE])
-test.fail_test(s != 0554)
+test.fail_test(s != 0777)
s = stat.S_IMODE(os.stat(test.workpath('d18'))[stat.ST_MODE])
-test.fail_test(s != 0554)
+test.fail_test(s != 0777)
test.pass_test()