Skip to content

Commit

Permalink
AK: Reenable the IntrusiveList<...NonnullRefPtr, ...> tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alimpfard authored and linusg committed Apr 21, 2021
1 parent 88b97f5 commit ba261ab
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions AK/Tests/TestIntrusiveList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,6 @@ TEST_CASE(intrusive_ref_ptr_destructor)
EXPECT_EQ(1u, item->ref_count());
}

// There is currently a bug in the NonnullRefPtr specialization of IntrusiveList,
// so this test fails to compile at the moment. Including it for future use.
#if 0
class IntrusiveNonnullRefPtrItem : public RefCounted<IntrusiveNonnullRefPtrItem> {
public:
IntrusiveNonnullRefPtrItem() = default;
Expand All @@ -143,6 +140,5 @@ TEST_CASE(intrusive_nonnull_ref_ptr_intrusive)

EXPECT(nonnull_ref_list.is_empty());
}
#endif

TEST_MAIN(IntrusiveList)

0 comments on commit ba261ab

Please sign in to comment.