Message ID | 20181010233441.5337-7-amir73il@gmail.com |
---|---|
State | Changes Requested |
Headers | show |
Series | Tests for readahead() and fadvise() on overlayfs | expand |
diff --git a/testcases/kernel/syscalls/readahead/readahead02.c b/testcases/kernel/syscalls/readahead/readahead02.c index d5cc7677b..657461905 100644 --- a/testcases/kernel/syscalls/readahead/readahead02.c +++ b/testcases/kernel/syscalls/readahead/readahead02.c @@ -346,6 +346,8 @@ static void test_readahead(unsigned int n) */ if (cached_ra * 1024 > testfile_size / 2) tst_res(TPASS, "using cache as expected"); + else if (!cached_ra) + tst_res(TFAIL, "readahead failed to use any cache"); else tst_res(TWARN, "using less cache than expected"); } else {