Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-binbin committed Nov 20, 2024
1 parent 2332728 commit 529af7e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/unit/test_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,12 @@ int test_reclaimFilePageCache(int argc, char **argv, int flags) {
if (res == 0) break;
usleep(1000000);
}
for (int i = 0; i < 100; i++) {
int res = cache_exist(fd);
printf("cache_exist i: %d res: %d\n", i, res);
if (res == 0) break;
usleep(1000000);
}
TEST_ASSERT(!cache_exist(fd));

/* test read file */
Expand Down

0 comments on commit 529af7e

Please sign in to comment.