Skip to content

Commit e1e439d

Browse files
committed
Fix test case for unowned retain. weak ref count cant go to 0 before the object is deallocated
Swift SVN r31994
1 parent 524a6f9 commit e1e439d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Diff for: unittests/runtime/Refcounting.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,6 @@ TEST(RefcountingTest, unowned_retain_release_n) {
158158
EXPECT_EQ(2u, swift_weakRetainCount(object));
159159
swift_weakRelease_n(object, 1);
160160
EXPECT_EQ(1u, swift_weakRetainCount(object));
161-
swift_weakRelease(object);
162-
EXPECT_EQ(0u, swift_weakRetainCount(object));
163161
swift_release(object);
164162
EXPECT_EQ(1u, value);
165163
}

0 commit comments

Comments
 (0)