aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/readahead_reserve.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/readahead_reserve.c b/tests/readahead_reserve.c
index d0a478b..068b6f4 100644
--- a/tests/readahead_reserve.c
+++ b/tests/readahead_reserve.c
@@ -64,8 +64,7 @@ int main(int argc, char *argv[])
verbose_printf("Reserve count after map: %lu\n", map_rsvd);
/* readahead the region and record reservations */
- if (readahead(fd, 0, hpage_size) == -1)
- FAIL("readahead(): %s", strerror(errno));
+ readahead(fd, 0, hpage_size);
readahead_rsvd = get_huge_page_counter(hpage_size, HUGEPAGES_RSVD);
verbose_printf("Reserve count after readahead: %lu\n", readahead_rsvd);