AK: Reenable the IntrusiveList<...NonnullRefPtr, ...> tests

This commit is contained in:
Ali Mohammad Pur 2021-04-22 01:47:05 +04:30 committed by Linus Groh
parent 88b97f5367
commit ba261aba72
Notes: sideshowbarker 2024-07-18 19:15:19 +09:00

View file

@ -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;
@ -143,6 +140,5 @@ TEST_CASE(intrusive_nonnull_ref_ptr_intrusive)
EXPECT(nonnull_ref_list.is_empty());
}
#endif
TEST_MAIN(IntrusiveList)