author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | |
Fri, 6 Aug 2010 22:09:09 +0000 (22:09 +0000) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 18 Aug 2010 19:42:04 +0000 (12:42 -0700) | ||
commit | c91cfd19160be63e97f28dce8c9af421b61c9938 | |
tree | 697fa90ba2ce81ec93ca5653d2138791e777ce82 | tree | snapshot |
parent | be53deef0d94b80b0a2df465d16f21ed29c3165b | commit | diff |
tests: A SANITY test prereq for testing if we're root
Some tests depend on not being able to write to files after chmod
-w. This doesn't work when running the tests as root.
Change test-lib.sh to test if this works, and if so it sets a new
SANITY test prerequisite. The tests that use this previously failed
when run under root.
There was already a test for this in t3600-rm.sh, added by Junio C
Hamano in 2283645 in 2006. That check now uses the new SANITY
prerequisite.
Some of this was resurrected from the "Tests in Cygwin" thread in May
2009:
http://thread.gmane.org/gmane.comp.version-control.git/116729/focus=118385
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Some tests depend on not being able to write to files after chmod
-w. This doesn't work when running the tests as root.
Change test-lib.sh to test if this works, and if so it sets a new
SANITY test prerequisite. The tests that use this previously failed
when run under root.
There was already a test for this in t3600-rm.sh, added by Junio C
Hamano in 2283645 in 2006. That check now uses the new SANITY
prerequisite.
Some of this was resurrected from the "Tests in Cygwin" thread in May
2009:
http://thread.gmane.org/gmane.comp.version-control.git/116729/focus=118385
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/README | diff | blob | history | |
t/t0001-init.sh | diff | blob | history | |
t/t0004-unwritable.sh | diff | blob | history | |
t/t1004-read-tree-m-u-wf.sh | diff | blob | history | |
t/t3600-rm.sh | diff | blob | history | |
t/t3700-add.sh | diff | blob | history | |
t/t7300-clean.sh | diff | blob | history | |
t/t7508-status.sh | diff | blob | history | |
t/test-lib.sh | diff | blob | history |