From b29b49bdf46d26adce9e9bda78503be17229a532 Mon Sep 17 00:00:00 2001 From: Josh Megnauth Date: Wed, 28 Jan 2026 14:23:00 -0500 Subject: [PATCH] Disable O_NOATIME test Redox doesn't have it. --- tests/fcntl/open.c | 56 +++++++++++++++++++++++----------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/tests/fcntl/open.c b/tests/fcntl/open.c index 361e21db88..c6f36a4401 100644 --- a/tests/fcntl/open.c +++ b/tests/fcntl/open.c @@ -197,36 +197,36 @@ int main(int argc, char* argv[]) { goto clean_opened_file; } - // O_NOATIME - struct timespec atime_expected = stat.st_atim; + // O_NOATIME (disabled since Redox doesn't have it) + // struct timespec atime_expected = stat.st_atim; close(fd); - fd = open(file_path, O_NOATIME); - if (fd == -1) { - perror("open (O_NOATIME)"); - close(fd); - goto clean_opened_file; - } - - if (fstat(fd, &stat) == -1) { - perror("fstat (O_PATH)"); - close(fd); - goto clean_opened_file; - } - - struct timespec atime_actual = stat.st_atim; - if ( - (atime_expected.tv_nsec != atime_actual.tv_nsec) - || (atime_expected.tv_sec != atime_actual.tv_sec) - ) { - fputs( - "Access time changed with O_NOATIME\n", - stderr - ); - close(fd); - goto clean_opened_file; - } - close(fd); + /* fd = open(file_path, O_NOATIME); */ + /* if (fd == -1) { */ + /* perror("open (O_NOATIME)"); */ + /* close(fd); */ + /* goto clean_opened_file; */ + /* } */ + /**/ + /* if (fstat(fd, &stat) == -1) { */ + /* perror("fstat (O_PATH)"); */ + /* close(fd); */ + /* goto clean_opened_file; */ + /* } */ + /**/ + /* struct timespec atime_actual = stat.st_atim; */ + /* if ( */ + /* (atime_expected.tv_nsec != atime_actual.tv_nsec) */ + /* || (atime_expected.tv_sec != atime_actual.tv_sec) */ + /* ) { */ + /* fputs( */ + /* "Access time changed with O_NOATIME\n", */ + /* stderr */ + /* ); */ + /* close(fd); */ + /* goto clean_opened_file; */ + /* } */ + /* close(fd); */ // O_NOFOLLOW char sym_path[PATH_MAX] = {0};