Skip to content

Commit

Permalink
readahead02: Skip test on missing /proc/self/io
Browse files Browse the repository at this point in the history
Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
  • Loading branch information
metan-ucw committed Jan 15, 2019
1 parent a4e2fe2 commit a78e154
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions testcases/kernel/syscalls/readahead/readahead02.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,9 @@ static void setup(void)
if (opt_fsizestr)
testfile_size = SAFE_STRTOL(opt_fsizestr, 1, INT_MAX);

if (access(PROC_IO_FNAME, F_OK))
tst_brk(TCONF, "Requires " PROC_IO_FNAME);

has_file(DROP_CACHES_FNAME, 1);
has_file(MEMINFO_FNAME, 1);

Expand Down

0 comments on commit a78e154

Please sign in to comment.