Skip to content

Commit a78e154

Browse files
committed
readahead02: Skip test on missing /proc/self/io
Reported-by: Naresh Kamboju <[email protected]> Signed-off-by: Cyril Hrubis <[email protected]>
1 parent a4e2fe2 commit a78e154

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

testcases/kernel/syscalls/readahead/readahead02.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,9 @@ static void setup(void)
369369
if (opt_fsizestr)
370370
testfile_size = SAFE_STRTOL(opt_fsizestr, 1, INT_MAX);
371371

372+
if (access(PROC_IO_FNAME, F_OK))
373+
tst_brk(TCONF, "Requires " PROC_IO_FNAME);
374+
372375
has_file(DROP_CACHES_FNAME, 1);
373376
has_file(MEMINFO_FNAME, 1);
374377

0 commit comments

Comments
 (0)