Skip to content

Commit

Permalink
Bugfix in chunk directory test
Browse files Browse the repository at this point in the history
  • Loading branch information
KIwabuchi committed Sep 12, 2023
1 parent 97d72b9 commit ff2ec87
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/kernel/chunk_directory_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ TEST(ChunkDirectoryTest, EraseChunk) {
ASSERT_GT(directory.size(), 0);

directory.erase(chno0);
ASSERT_TRUE(directory.unused_chunk(chno0));
ASSERT_TRUE(chno0 >= directory.size() || directory.unused_chunk(chno0));
directory.erase(chno1);
ASSERT_TRUE(directory.unused_chunk(chno1));
ASSERT_TRUE(chno1 >= directory.size() || directory.unused_chunk(chno1));
directory.erase(chno2);
ASSERT_TRUE(directory.unused_chunk(chno2));
ASSERT_TRUE(chno2 >= directory.size() || directory.unused_chunk(chno2));
directory.erase(chno3);
ASSERT_TRUE(directory.unused_chunk(chno3));
ASSERT_TRUE(chno3 >= directory.size() || directory.unused_chunk(chno3));
ASSERT_EQ(directory.size(), 0);
}

Expand Down

0 comments on commit ff2ec87

Please sign in to comment.