Avoid failures in the utimensat test caused by opening a read-only file for writing
commit6b4bccc416599377f3ff7334a82a8e8f1a285eec
authorJiri Palecek <jirka@debian.(none)>
Tue, 19 Jan 2010 23:36:01 +0000 (20 00:36 +0100)
committerJiri Palecek <jirka@debian.(none)>
Wed, 20 Jan 2010 01:17:04 +0000 (20 02:17 +0100)
tree57c6f8f52986b57b63d00b0b8242692aad92904c
parent659dcca349dd5f51eaa5703a022e06402cd1e660
Avoid failures in the utimensat test caused by opening a read-only file for writing

 The futimens() test part from the utimensat test opens the test file
for reading and/or writing, but this fails when the test is executed
against a read-only file or a file owned by another user. This causes
failures of the utimensat test. This patch fixes it by skipping the
futimens() part in the aforementioned cases.
testcases/kernel/syscalls/utimensat/utimensat_tests.sh